mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
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:
@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user