DiscIO: Rename RegionSwitch/CountrySwitch

Callers don't need to know that these functions are implemented
with a switch statement.
This commit is contained in:
JosJuice
2018-10-08 13:51:21 +02:00
parent 7fd1784b9a
commit f834ef1dfe
7 changed files with 22 additions and 14 deletions

View File

@ -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