mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
Add Model dumping for T6
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user