From cd60810d9db611d429f1d2f503cc3d3bfc0afc9f Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 16 Jul 2017 14:33:14 +0200 Subject: [PATCH] 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. --- Source/Core/Core/TitleDatabase.cpp | 4 ++-- 1 file 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