LoadLocalizationFile appends loca instead of erasing

This commit is contained in:
SweetId
2023-10-21 11:57:37 -04:00
parent 44ab06efbe
commit 55eee90abe
2 changed files with 56 additions and 11 deletions

View File

@@ -28,6 +28,9 @@ namespace Nz
const std::string& GetStringAtIndex(size_t index) const;
private:
size_t GetOrCreateLocale(std::string_view name);
size_t GetOrCreateLookupIndex(std::string_view name);
struct Locale
{
std::string name;
@@ -38,6 +41,7 @@ namespace Nz
std::unordered_map<std::string, size_t> m_lookupTable;
Locale* m_currentLocale;
size_t m_currentLocaleIndex;
static Localization* s_instance;