TitleDatabase: Don't crash on unknown language

This only happens if the GC or Wii language is set to an
invalid value, but it's best to guard against it anyway.
This commit is contained in:
JosJuice 2019-06-30 16:01:45 +02:00
parent da1fbbc5d5
commit f3b9d93737
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ TitleDatabase::TitleDatabase()
AddLazyMap(DiscIO::Language::SimplifiedChinese, "zh_CN");
AddLazyMap(DiscIO::Language::TraditionalChinese, "zh_TW");
AddLazyMap(DiscIO::Language::Korean, "ko");
m_title_maps[DiscIO::Language::Unknown] = [] { return Map(); };
// Titles that aren't part of the Wii TDB, but common enough to justify having entries for them.