|
|
@ -8,6 +8,20 @@ using namespace std;
|
|
|
|
#include <DFHack.h>
|
|
|
|
#include <DFHack.h>
|
|
|
|
#include <dfhack/modules/Gui.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
|
|
|
|
struct hideblock
|
|
|
|
{
|
|
|
|
{
|
|
|
|
uint32_t x;
|
|
|
|
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.
|
|
|
|
// 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);
|
|
|
|
Gui->SetPauseState(true);
|
|
|
|
DF->Resume();
|
|
|
|
DF->Resume();
|
|
|
|
sleep(1);
|
|
|
|
waitmsec(1000);
|
|
|
|
DF->Suspend();
|
|
|
|
DF->Suspend();
|
|
|
|
|
|
|
|
|
|
|
|
// init the map
|
|
|
|
// init the map
|
|
|
|