mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
ZoneLoading: Only dump localized strings when there are any in the pool
This commit is contained in:
parent
ca1d188759
commit
d6f49c459c
@ -61,6 +61,9 @@ std::string AssetDumperLocalizeEntry::GetNameOfLanguage(ZoneLanguage language)
|
|||||||
|
|
||||||
void AssetDumperLocalizeEntry::DumpPool(Zone* zone, AssetPool<LocalizeEntry>* pool, const std::string& basePath)
|
void AssetDumperLocalizeEntry::DumpPool(Zone* zone, AssetPool<LocalizeEntry>* pool, const std::string& basePath)
|
||||||
{
|
{
|
||||||
|
if (pool->m_asset_lookup.size() == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
const std::string language = GetNameOfLanguage(zone->m_language);
|
const std::string language = GetNameOfLanguage(zone->m_language);
|
||||||
const std::string stringsPath = utils::Path::Combine(basePath, language + "/localizedstrings");
|
const std::string stringsPath = utils::Path::Combine(basePath, language + "/localizedstrings");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user