mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
DiscIO: Rename RegionSwitch/CountrySwitch
Callers don't need to know that these functions are implemented with a switch statement.
This commit is contained in:
parent
7fd1784b9a
commit
f834ef1dfe
7 changed files with 22 additions and 14 deletions
|
@ -87,10 +87,10 @@ Country VolumeGC::GetCountry(const Partition& partition) const
|
|||
const u8 country = ReadSwapped<u8>(3, partition).value_or(0);
|
||||
const Region region = GetRegion();
|
||||
|
||||
if (RegionSwitch(country, Platform::GameCubeDisc, region) != region)
|
||||
if (CountryCodeToRegion(country, Platform::GameCubeDisc, region) != region)
|
||||
return TypicalCountryForRegion(region);
|
||||
|
||||
return CountrySwitch(country, Platform::GameCubeDisc, region);
|
||||
return CountryCodeToCountry(country, Platform::GameCubeDisc, region);
|
||||
}
|
||||
|
||||
std::string VolumeGC::GetMakerID(const Partition& partition) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue