From d0531c29252c8a30b0e368165a861ece1580c5e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 14 Mar 2010 13:37:39 +0100 Subject: [PATCH] Add class entries to meta-40d for stonesense --- examples/veccheck.cpp | 9 +++++++++ output/Memory.xml | 45 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/examples/veccheck.cpp b/examples/veccheck.cpp index fd9ae52e5..4951b55ba 100644 --- a/examples/veccheck.cpp +++ b/examples/veccheck.cpp @@ -11,6 +11,7 @@ using namespace std; #include #include #include +#include int main (int numargs, const char ** args) { @@ -28,6 +29,13 @@ int main (int numargs, const char ** args) else { DFHack::Process* p = DF.getProcess(); + DFHack::memory_info* mem = DF.getMemoryInfo(); + const vector * names = mem->getClassIDMapping(); + for(int i = 0; i < names->size();i++) + { + cout << i << " " << names->at(i) << endl; + } + /* #ifdef LINUX_BUILD cout << "start 0x" << hex << p->readDWord(addr+0x0) << endl; cout << "end 0x" << hex << p->readDWord(addr+0x4) << endl; @@ -37,6 +45,7 @@ int main (int numargs, const char ** args) cout << "end 0x" << hex << p->readDWord(addr+0x8) << endl; cout << "cap 0x" << hex << p->readDWord(addr+0xC) << endl; #endif + */ } #ifndef LINUX_BUILD cout << "Done. Press any key to continue" << endl; diff --git a/output/Memory.xml b/output/Memory.xml index e45d4483b..f97e27ad3 100644 --- a/output/Memory.xml +++ b/output/Memory.xml @@ -719,8 +719,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -