From aee5efe7c0d0cdf784fb8bdb445cc233435d47dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Fri, 10 Feb 2012 02:35:51 +0100 Subject: [PATCH] Make it run on Windows, re-added more missing globals to memory.xml --- Memory.xml | 15 +++++++++++++++ library/Process-windows.cpp | 4 +--- library/include/Core.h | 2 +- library/include/MemAccess.h | 2 +- library/include/VersionInfoFactory.h | 2 +- 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Memory.xml b/Memory.xml index ca70e10bf..7a125caa1 100644 --- a/Memory.xml +++ b/Memory.xml @@ -21,10 +21,16 @@ +
+
+
+
+
+
@@ -37,11 +43,14 @@
+ +
+
@@ -77,6 +86,9 @@
+
+
+
@@ -92,6 +104,9 @@
+ +
+
diff --git a/library/Process-windows.cpp b/library/Process-windows.cpp index b02e3011f..054f08a9c 100644 --- a/library/Process-windows.cpp +++ b/library/Process-windows.cpp @@ -161,9 +161,7 @@ Process::Process(VersionInfoFactory * factory) identified = true; // give the process a data model and memory layout fixed for the base of first module my_descriptor = new VersionInfo(*vinfo); - my_descriptor->RebaseAll((uint32_t)d->base); - // keep track of created memory_info object so we can destroy it later - my_descriptor->setParentProcess(this); + my_descriptor->rebaseTo((uint32_t)d->base); for(size_t i = 0; i < threads_ids.size();i++) { HANDLE hThread = OpenThread(THREAD_ALL_ACCESS, FALSE, (DWORD) threads_ids[i]); diff --git a/library/include/Core.h b/library/include/Core.h index 586340c3f..74a47387f 100644 --- a/library/include/Core.h +++ b/library/include/Core.h @@ -56,7 +56,7 @@ namespace DFHack class World; class Materials; class Notes; - class VersionInfo; + struct VersionInfo; class VersionInfoFactory; class PluginManager; class Core; diff --git a/library/include/MemAccess.h b/library/include/MemAccess.h index 531b83353..ea5d07d7c 100644 --- a/library/include/MemAccess.h +++ b/library/include/MemAccess.h @@ -36,7 +36,7 @@ distribution. namespace DFHack { - class VersionInfo; + struct VersionInfo; class Process; //class Window; class DFVector; diff --git a/library/include/VersionInfoFactory.h b/library/include/VersionInfoFactory.h index 27a06794e..08b1ea76e 100644 --- a/library/include/VersionInfoFactory.h +++ b/library/include/VersionInfoFactory.h @@ -31,7 +31,7 @@ distribution. class TiXmlElement; namespace DFHack { - class VersionInfo; + struct VersionInfo; class DFHACK_EXPORT VersionInfoFactory { public: