Merge pull request #8245 from JosJuice/volumeverifier-wii-menu-region

Fix VolumeVerifier considering Wii Menu WADs to have wrong region
This commit is contained in:
Anthony
2019-07-22 15:06:07 -07:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@ -562,7 +562,11 @@ void VolumeVerifier::CheckMisc()
}
else
{
const char country_code = game_id_encrypted[3];
char country_code;
if (IsDisc(m_volume.GetVolumeType()))
country_code = game_id_encrypted[3];
else
country_code = static_cast<char>(m_volume.GetTitleID().value_or(0) & 0xff);
if (CountryCodeToRegion(country_code, platform, region) != region)
{
AddProblem(Severity::Medium,