Skip to content

Commit

Permalink
Merge pull request #8245 from JosJuice/volumeverifier-wii-menu-region
Browse files Browse the repository at this point in the history
Fix VolumeVerifier considering Wii Menu WADs to have wrong region
  • Loading branch information
Helios747 committed Jul 22, 2019
2 parents 26c1ea3 + 0b11f15 commit 136264d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Source/Core/DiscIO/Enums.cpp
Expand Up @@ -150,6 +150,9 @@ Region CountryCodeToRegion(u8 country_code, Platform platform, Region expected_r
{
switch (country_code)
{
case '\2':
return expected_region; // Wii Menu (same title ID for all regions)

case 'J':
return Region::NTSC_J;

Expand Down
6 changes: 5 additions & 1 deletion Source/Core/DiscIO/VolumeVerifier.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit 136264d

Please sign in to comment.