Removed temporary ID dumper code

This commit is contained in:
Jack Andersen 2015-10-25 18:06:48 -10:00
parent fa8b48d43e
commit 3c63023d07
1 changed files with 0 additions and 37 deletions

View File

@ -309,43 +309,6 @@ public:
progress(++count / bridgesSz);
++bridgeIdx;
}
/* TEMP: CSV dump */
FILE* fp = HECL::Fopen(_S("/home/jacko/Desktop/mp_res.txt"), _S("w"));
for (const auto& entry : m_uniqueEntries)
{
const EntryType* ent = entry.second.second;
fprintf(fp, "%s\t0x%s\t\t", ent->type.toString().c_str(), entry.first.toString().c_str());
switch (ent->unique.m_type)
{
case UniqueResult::UNIQUE_NOTFOUND:
case UniqueResult::UNIQUE_PAK:
{
const HECL::ProjectPath& pakPath = m_bridgePaths[entry.second.first].first;
fprintf(fp, _S("%s\n"), pakPath.getLastComponent());
break;
}
case UniqueResult::UNIQUE_LEVEL:
fprintf(fp, _S("%s\n"), ent->unique.m_levelName->c_str());
break;
case UniqueResult::UNIQUE_AREA:
fprintf(fp, _S("%s/%s\n"), ent->unique.m_levelName->c_str(), ent->unique.m_areaName->c_str());
break;
case UniqueResult::UNIQUE_LAYER:
fprintf(fp, _S("%s/%s/%s\n"), ent->unique.m_levelName->c_str(), ent->unique.m_areaName->c_str(), ent->unique.m_layerName->c_str());
break;
default:
fprintf(fp, "\n");
break;
}
}
fprintf(fp, "\n");
for (const auto& entry : m_sharedEntries)
{
const EntryType* ent = entry.second.second;
fprintf(fp, "%s\t0x%s\t\t\n", ent->type.toString().c_str(), entry.first.toString().c_str());
}
fclose(fp);
}
void enterPAKBridge(const BRIDGETYPE& pakBridge)