summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeWad.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DiscIO/VolumeWad.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeWad.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/VolumeWad.cpp b/Source/Core/DiscIO/VolumeWad.cpp
index c274181695..7d927ae73d 100644
--- a/Source/Core/DiscIO/VolumeWad.cpp
+++ b/Source/Core/DiscIO/VolumeWad.cpp
@@ -84,11 +84,15 @@ Country VolumeWAD::GetCountry(const Partition& partition) const
if (!m_tmd.IsValid())
return Country::Unknown;
- u8 country_code = static_cast<u8>(m_tmd.GetTitleId() & 0xff);
- if (country_code == 2) // SYSMENU
+ const u8 country_byte = static_cast<u8>(m_tmd.GetTitleId() & 0xff);
+ if (country_byte == 2) // SYSMENU
return TypicalCountryForRegion(GetSysMenuRegion(m_tmd.GetTitleVersion()));
- return CountryCodeToCountry(country_code, Platform::WiiWAD);
+ const Region region = GetRegion();
+ if (CountryCodeToRegion(country_byte, Platform::WiiWAD, region) != region)
+ return TypicalCountryForRegion(region);
+
+ return CountryCodeToCountry(country_byte, Platform::WiiWAD, region);
}
const IOS::ES::TMDReader& VolumeWAD::GetTMD(const Partition& partition) const