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:
parent
c8b4645039
commit
cd60810d9d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue