ZoneCommon: Add GameLanguagePrefix class and save known prefixes for languages in the game object

This commit is contained in:
Jan committed 2020-02-07 20:52:24 +01:00
1 parent f73c27a7dc
commit 9f8022c2ca
10 files changed
+108 -111

No files matched your search

+6
View File
@@ -61,6 +61,12 @@ void ObjLoaderT6::LoadIPakForZone(ISearchPath* searchPath, const std::string& ip
{
LoadIPakForZone(searchPath, "mp", zone);
LoadIPakForZone(searchPath, "so", zone);
auto languagePrefixes = g_GameT6.GetLanguagePrefixes();
for(const auto& languagePrefix : languagePrefixes)
{
LoadIPakForZone(searchPath, languagePrefix.m_prefix + "base", zone);
}
}
}