From 4c030e7cc126cc8e8da92749e75264a06dd13534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Fri, 25 Mar 2011 02:31:27 +0100 Subject: [PATCH] Some linux 31.22 offsets, slight tweaks to Materials --- Memory.xml | 96 +++++++++++++++++++++- library/VersionInfo.cpp | 78 ++++++++++++++---- library/include/dfhack/modules/Materials.h | 2 + library/modules/Materials.cpp | 6 +- 4 files changed, 164 insertions(+), 18 deletions(-) diff --git a/Memory.xml b/Memory.xml index bf7507cb4..5417f68ce 100644 --- a/Memory.xml +++ b/Memory.xml @@ -2074,8 +2074,8 @@ - maybe - maybe + +
@@ -2123,7 +2123,6 @@ - --> @@ -2653,6 +2652,97 @@ + + + + +
+
+
+
+
+ + +
+
+
+ + + + + + + + + + + + + + + +
+ + + +
+ + + + +
+
+ + + + + +
+
+
+
+
+ one of those: + 0x944c3c8 + 0x944c3d4 + + + + + + + +
+
+ + + + + +
+
+ + + + diff --git a/library/VersionInfo.cpp b/library/VersionInfo.cpp index bea8fa016..794ed095b 100644 --- a/library/VersionInfo.cpp +++ b/library/VersionInfo.cpp @@ -26,12 +26,34 @@ distribution. #include "dfhack/VersionInfo.h" #include "dfhack/DFError.h" #include "dfhack/DFProcess.h" +#include //Inital amount of space in levels vector (since we usually know the number, efficient!) #define NUM_RESERVE_LVLS 20 #define NUM_RESERVE_MOODS 6 using namespace DFHack; +//FIXME: put those in some shared file +template