|
|
@ -15,6 +15,7 @@ int main (void)
|
|
|
|
DFHack::designations40d designations;
|
|
|
|
DFHack::designations40d designations;
|
|
|
|
|
|
|
|
|
|
|
|
DFHack::API DF("Memory.xml");
|
|
|
|
DFHack::API DF("Memory.xml");
|
|
|
|
|
|
|
|
|
|
|
|
if(!DF.Attach())
|
|
|
|
if(!DF.Attach())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
cerr << "DF not found" << endl;
|
|
|
|
cerr << "DF not found" << endl;
|
|
|
@ -22,6 +23,8 @@ int main (void)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DF.InitMap();
|
|
|
|
DF.InitMap();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (DF.InitViewAndCursor())
|
|
|
|
|
|
|
|
{
|
|
|
|
if(DF.getCursorCoords(x,y,z))
|
|
|
|
if(DF.getCursorCoords(x,y,z))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(DF.isValidBlock(x,y,z))
|
|
|
|
if(DF.isValidBlock(x,y,z))
|
|
|
@ -33,6 +36,9 @@ int main (void)
|
|
|
|
DF.WriteDesignations(x,y,z, &designations);
|
|
|
|
DF.WriteDesignations(x,y,z, &designations);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
cout << "Process Failed" << endl;
|
|
|
|
DF.Detach();
|
|
|
|
DF.Detach();
|
|
|
|
#ifndef LINUX_BUILD
|
|
|
|
#ifndef LINUX_BUILD
|
|
|
|
cout << "Done. Press any key to continue" << endl;
|
|
|
|
cout << "Done. Press any key to continue" << endl;
|
|
|
|