mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +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
|
@ -293,10 +293,10 @@ Country VolumeWii::GetCountry(const Partition& partition) const
|
|||
const u8 country_byte = ReadSwapped<u8>(3, partition).value_or(0);
|
||||
const Region region = GetRegion();
|
||||
|
||||
if (RegionSwitch(country_byte, Platform::WiiDisc, region) != region)
|
||||
if (CountryCodeToRegion(country_byte, Platform::WiiDisc, region) != region)
|
||||
return TypicalCountryForRegion(region);
|
||||
|
||||
return CountrySwitch(country_byte, Platform::WiiDisc, region);
|
||||
return CountryCodeToCountry(country_byte, Platform::WiiDisc, region);
|
||||
}
|
||||
|
||||
std::string VolumeWii::GetMakerID(const Partition& partition) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue