Map Features

develop
Petr Mrázek 2010-09-21 00:44:41 +02:00
parent 310b1629b6
commit 768f382a5e
2 changed files with 22 additions and 14 deletions

@ -1548,21 +1548,15 @@
</Group>
<Group name="features">
<Group name="global">
<Address name="vector" value="0x16999BC 0x16AF4FC" />
<!--
BAD!
<Offset name="funcptr" value="0x100" />
<Offset name="material" value="0x34" />
<Offset name="submaterial" value="0x38" />
-->
<Address name="vector" value="0x16998e0" />
<Offset name="funcptr" value="0xD8" />
<Offset name="material" value="0x2C" />
<Offset name="submaterial" value="0x30" />
</Group>
<Group name="local">
<Address name="start_ptr" value="0x1699A88 0x16AF5C8" />
<!--
BAD?
<Offset name="material" value="0x30" />
<Offset name="submaterial" value="0x34" />
-->
<Address name="start_ptr" value="0x1699974" />
<Offset name="material" value="0x28" />
<Offset name="submaterial" value="0x2C" />
</Group>
</Group>
<Group name="geology">

@ -8,6 +8,20 @@ using namespace std;
#include <DFHack.h>
#include <dfhack/modules/Gui.h>
#ifdef LINUX_BUILD
#include <unistd.h>
void waitmsec (int delay)
{
usleep(delay);
}
#else
#include <windows.h>
void waitmsec (int delay)
{
Sleep(delay);
}
#endif
struct hideblock
{
uint32_t x;
@ -48,7 +62,7 @@ int main (void)
// this here hack sets the pause state, resumes DF, waits a second for it to enter the pause (I know, BS value.) and suspends.
Gui->SetPauseState(true);
DF->Resume();
sleep(1);
waitmsec(1000);
DF->Suspend();
// init the map