summaryrefslogtreecommitdiff
path: root/library/DataDefs.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2012-02-09 03:07:26 +0100
committerPetr Mrázek2012-02-09 03:07:26 +0100
commit8f680dcf9482748b4a9ddaf3601c1a656622a994 (patch)
tree6fe46b31f3a11bd3f27d48eef55f9f8cf72b705e /library/DataDefs.cpp
parentf7d8635be1dd00871e60c6adc388ac2cd865dd4b (diff)
downloaddfhack-8f680dcf9482748b4a9ddaf3601c1a656622a994.tar.gz
dfhack-8f680dcf9482748b4a9ddaf3601c1a656622a994.tar.bz2
dfhack-8f680dcf9482748b4a9ddaf3601c1a656622a994.tar.xz
Make it build and run on linux (no stonesense, df2mc, dfusion)
Diffstat (limited to 'library/DataDefs.cpp')
-rw-r--r--library/DataDefs.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/library/DataDefs.cpp b/library/DataDefs.cpp
index cd8a8ed7..86c3ea02 100644
--- a/library/DataDefs.cpp
+++ b/library/DataDefs.cpp
@@ -152,7 +152,8 @@ void virtual_identity::Init(Core *core)
p->parent->has_children = true;
}
}
-
+ //FIXME: ... nuked. the group was empty...
+/*
// Read pre-filled vtable ptrs
OffsetGroup *ptr_table = core->vinfo->getGroup("vtable");
for (virtual_identity *p = list; p; p = p->next) {
@@ -160,6 +161,7 @@ void virtual_identity::Init(Core *core)
if (ptr_table->getSafeAddress(p->getName(),tmp))
p->vtable_ptr = tmp;
}
+ */
}
std::string DFHack::bitfieldToString(const void *p, int size, const bitfield_item_info *items)
@@ -215,11 +217,11 @@ DF_KNOWN_GLOBALS
#undef SIMPLE_GLOBAL
void DFHack::InitDataDefGlobals(Core *core) {
- OffsetGroup *global_table = core->vinfo->getGroup("global");
+ VersionInfo *vinfo = core->vinfo;
void * tmp;
#define SIMPLE_GLOBAL(name,tname) \
- if (global_table->getSafeAddress(#name,tmp)) df::global::name = (tname*)tmp;
+ if (vinfo->getAddress(#name,tmp)) df::global::name = (tname*)tmp;
#define GLOBAL(name,tname) SIMPLE_GLOBAL(name,df::tname)
DF_KNOWN_GLOBALS
#undef GLOBAL