Use ZoneState to check whether localize key is duplicated

This commit is contained in:
Jan
2023-12-31 12:28:13 +01:00
parent e4cfda73dc
commit 196e2edd8a
13 changed files with 59 additions and 15 deletions

View File

@ -36,7 +36,8 @@ bool AssetLoaderLocalizeEntry::LoadFromRaw(
if (!file.IsOpen())
return false;
LocalizeFileReader reader(*file.m_stream, assetName, zone->m_language);
auto* zoneState = manager->GetAssetLoadingContext()->GetZoneAssetLoaderState<LocalizeReadingZoneState>();
LocalizeFileReader reader(*file.m_stream, assetName, zone->m_language, zoneState);
const auto localizeEntries = reader.ReadLocalizeFile();
for (const auto& [key, value] : localizeEntries)