diff options
| author | JosJuice <josjuice@gmail.com> | 2017-07-16 14:33:14 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-07-16 14:33:14 +0200 |
| commit | cd60810d9db611d429f1d2f503cc3d3bfc0afc9f (patch) | |
| tree | 5b690c89b9d830ee5dae152e512ab08f7ff715e3 /Source/Core | |
| parent | c8b4645039fb7bc846d4030a94d76f19d12c6564 (diff) | |
Improve Japanese check in TitleDatabase
We should check the language of a game rather than the region.
RegionSwitchGC counts W as NTSC-J, and W games aren't in Japanese.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/TitleDatabase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Core/TitleDatabase.cpp b/Source/Core/Core/TitleDatabase.cpp index 2f3ec48541..ea8b2916f1 100644 --- a/Source/Core/Core/TitleDatabase.cpp +++ b/Source/Core/Core/TitleDatabase.cpp @@ -94,12 +94,12 @@ static bool IsWiiTitle(const std::string& game_id) static bool IsJapaneseGCTitle(const std::string& game_id) { - return IsGCTitle(game_id) && DiscIO::RegionSwitchGC(game_id[3]) == DiscIO::Region::NTSC_J; + return IsGCTitle(game_id) && DiscIO::CountrySwitch(game_id[3]) == DiscIO::Country::COUNTRY_JAPAN; } static bool IsNonJapaneseGCTitle(const std::string& game_id) { - return IsGCTitle(game_id) && DiscIO::RegionSwitchGC(game_id[3]) != DiscIO::Region::NTSC_J; + return IsGCTitle(game_id) && DiscIO::CountrySwitch(game_id[3]) != DiscIO::Country::COUNTRY_JAPAN; } // Note that this function will not overwrite entries that already are in the maps |
