Return a more meaningful type from GetSysMenuRegion

This commit is contained in:
JosJuice
2017-03-17 21:16:59 +01:00
parent 04c49aa395
commit 9d54e4a9de
5 changed files with 35 additions and 29 deletions

View File

@ -174,22 +174,10 @@ Country CVolumeWiiCrypted::GetCountry() const
const Region region = GetRegion();
if (RegionSwitchWii(country_byte) == region)
return CountrySwitch(country_byte);
if (RegionSwitchWii(country_byte) != region)
return TypicalCountryForRegion(region);
switch (region)
{
case Region::NTSC_J:
return Country::COUNTRY_JAPAN;
case Region::NTSC_U:
return Country::COUNTRY_USA;
case Region::PAL:
return Country::COUNTRY_EUROPE;
case Region::NTSC_K:
return Country::COUNTRY_KOREA;
default:
return Country::COUNTRY_UNKNOWN;
}
return CountrySwitch(country_byte);
}
std::string CVolumeWiiCrypted::GetMakerID() const