mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 09:39:13 +00:00
DiscIO: Merge RegionSwitchGC and RegionSwitchWii
This commit is contained in:
parent
d741c239d2
commit
08d0b98988
5 changed files with 7 additions and 15 deletions
|
@ -290,10 +290,10 @@ Region VolumeWii::GetRegion() const
|
|||
Country VolumeWii::GetCountry(const Partition& partition) const
|
||||
{
|
||||
// The 0 that we use as a default value is mapped to Country::Unknown and Region::Unknown
|
||||
u8 country_byte = ReadSwapped<u8>(3, partition).value_or(0);
|
||||
const u8 country_byte = ReadSwapped<u8>(3, partition).value_or(0);
|
||||
const Region region = GetRegion();
|
||||
|
||||
if (RegionSwitchWii(country_byte) != region)
|
||||
if (RegionSwitch(country_byte, Platform::WiiDisc) != region)
|
||||
return TypicalCountryForRegion(region);
|
||||
|
||||
return CountrySwitch(country_byte);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue