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.
This commit is contained in:
JosJuice 2017-07-16 14:33:14 +02:00
parent c8b4645039
commit cd60810d9d
1 changed files with 2 additions and 2 deletions

View File

@ -94,12 +94,12 @@ static bool IsWiiTitle(const std::string& game_id)
static bool IsJapaneseGCTitle(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) 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 // Note that this function will not overwrite entries that already are in the maps