summaryrefslogtreecommitdiff
path: root/library/VersionInfoFactory.cpp
diff options
context:
space:
mode:
authorTimothy Collett2012-06-14 13:42:06 -0400
committerTimothy Collett2012-06-14 13:42:06 -0400
commit12543d6a5b4afc4cbba20670f3e463672ed9fac4 (patch)
treee43580d6b4d627ad119d7cdb2b0daa54ee04bd9f /library/VersionInfoFactory.cpp
parentc6700585bcbe5b03216cef2811486d94c795e556 (diff)
downloaddfhack-12543d6a5b4afc4cbba20670f3e463672ed9fac4.tar.gz
dfhack-12543d6a5b4afc4cbba20670f3e463672ed9fac4.tar.bz2
dfhack-12543d6a5b4afc4cbba20670f3e463672ed9fac4.tar.xz
Make offsets with "darwin" os-type recognized as Apple, rather than ignored
Diffstat (limited to 'library/VersionInfoFactory.cpp')
-rw-r--r--library/VersionInfoFactory.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/library/VersionInfoFactory.cpp b/library/VersionInfoFactory.cpp
index 972ab31b..4ac53dd1 100644
--- a/library/VersionInfoFactory.cpp
+++ b/library/VersionInfoFactory.cpp
@@ -105,6 +105,12 @@ void VersionInfoFactory::ParseVersion (TiXmlElement* entry, VersionInfo* mem)
// this is wrong... I'm not going to do base image relocation on linux though.
mem->setBase(0x0);
}
+ else if(os == "darwin")
+ {
+ mem->setOS(OS_APPLE);
+ // this is wrong... I'm not going to do base image relocation on linux though.
+ mem->setBase(0x0);
+ }
else
{
return; // ignore it if it's invalid