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:
parent
da1fbbc5d5
commit
f3b9d93737
|
@ -73,6 +73,7 @@ TitleDatabase::TitleDatabase()
|
||||||
AddLazyMap(DiscIO::Language::SimplifiedChinese, "zh_CN");
|
AddLazyMap(DiscIO::Language::SimplifiedChinese, "zh_CN");
|
||||||
AddLazyMap(DiscIO::Language::TraditionalChinese, "zh_TW");
|
AddLazyMap(DiscIO::Language::TraditionalChinese, "zh_TW");
|
||||||
AddLazyMap(DiscIO::Language::Korean, "ko");
|
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.
|
// Titles that aren't part of the Wii TDB, but common enough to justify having entries for them.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue