Merge pull request #8223 from JosJuice/titledatabase-unknown-language

TitleDatabase: Don't crash on unknown language
This commit is contained in:
Connor McLaughlin
2019-08-09 23:35:53 +10:00
committed by GitHub

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.