massive Memory.xml VTable sections restructure, support for d17 added in Memory.xml, needs testing. shm not updated yet

develop
Petr Mrázek 2010-02-10 00:20:15 +00:00
parent 70bf6954a6
commit b1ce815370
3 changed files with 762 additions and 248 deletions

@ -80,6 +80,7 @@ void MemInfoManager::ParseEntry (TiXmlElement* entry, memory_info& mem, map <str
const char *cstr_os = entry->Attribute("os");
const char *cstr_base = entry->Attribute("base");
const char *cstr_rebase = entry->Attribute("rebase");
// printf("%s : %s\n",cstr_version, cstr_os);
if(cstr_base)
{
string base = cstr_base;

File diff suppressed because it is too large Load Diff

@ -143,6 +143,8 @@ int main (int argc,const char* argv[])
{
DFHack::t_building temp;
DF.ReadBuilding(i, temp);
if(temp.type != 0xFFFFFFFF) // check if type isn't invalid
{
if(buildingtypes[temp.type] == argv[1])
{
//cout << buildingtypes[temp.type] << " 0x" << hex << temp.origin << endl;
@ -150,6 +152,12 @@ int main (int argc,const char* argv[])
addresses.push_back(temp.origin);
}
}
else
{
// couldn't translate type, print out the vtable
cout << "unknown vtable: " << temp.vtable << endl;
}
}
interleave_hex(DF,addresses,lines / 4);
DF.FinishReadBuildings();
DF.Detach();