mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
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:
@ -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
|
||||||
|
Reference in New Issue
Block a user