Add Model dumping for T6

This commit is contained in:
Jan
2021-08-14 15:39:40 +02:00
parent 963e6537ca
commit d5780a1124
19 changed files with 878 additions and 84 deletions

View File

@ -84,7 +84,7 @@ bool AssetLoaderFontIcon::ParseHashStr(int& value, const std::string& str)
}
else
{
value = CommonT6::Com_HashString(str.c_str());
value = Common::Com_HashString(str.c_str());
}
return true;
@ -121,7 +121,7 @@ bool AssetLoaderFontIcon::ReadIconRow(const std::vector<std::string>& row, FontI
icon.fontIconMaterialHandle = static_cast<Material*>(materialDependency->m_ptr);
icon.fontIconName.string = memory->Dup(row[ROW_ICON_NAME].c_str());
icon.fontIconName.hash = CommonT6::Com_HashString(icon.fontIconName.string);
icon.fontIconName.hash = Common::Com_HashString(icon.fontIconName.string);
return true;
}

View File

@ -66,7 +66,7 @@ bool AssetLoaderStringTable::LoadFromRaw(const std::string& assetName, ISearchPa
else
cell.string = memory->Dup(rowValues[col].c_str());
cell.hash = CommonT6::Com_HashString(cell.string);
cell.hash = Common::Com_HashString(cell.string);
}
}

View File

@ -25,7 +25,7 @@ bool InfoStringToStructConverter::GetHashValue(const std::string& value, unsigne
return endPtr == &value[value.size()];
}
hash = CommonT6::Com_HashString(value.c_str());
hash = Common::Com_HashString(value.c_str());
return true;
}

View File

@ -30,8 +30,8 @@
namespace T6
{
const int ObjLoader::IPAK_READ_HASH = CommonT6::Com_HashKey("ipak_read", 64);
const int ObjLoader::GLOBAL_HASH = CommonT6::Com_HashKey("GLOBAL", 64);
const int ObjLoader::IPAK_READ_HASH = Common::Com_HashKey("ipak_read", 64);
const int ObjLoader::GLOBAL_HASH = Common::Com_HashKey("GLOBAL", 64);
ObjLoader::ObjLoader()
{
@ -292,7 +292,7 @@ namespace T6
void ObjLoader::LoadReferencedContainersForZone(ISearchPath* searchPath, Zone* zone) const
{
auto* assetPoolT6 = dynamic_cast<GameAssetPoolT6*>(zone->m_pools.get());
const auto zoneNameHash = CommonT6::Com_HashKey(zone->m_name.c_str(), 64);
const auto zoneNameHash = Common::Com_HashKey(zone->m_name.c_str(), 64);
LoadCommonIPaks(searchPath, zone);