Skip to content
Browse files

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.
  • Loading branch information...
JosJuice committed Jun 30, 2019
1 parent da1fbbc commit f3b9d93737474f22c2760a099872431e993570b1
Showing with 1 addition and 0 deletions.
  1. +1 −0 Source/Core/Core/TitleDatabase.cpp
@@ -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.

0 comments on commit f3b9d93

Please sign in to comment.
You can’t perform that action at this time.