Skip to content
Permalink
Browse files

Fix VolumeVerifier considering Wii Menu WADs to have wrong region

  • Loading branch information...
JosJuice committed Jul 15, 2019
1 parent 533f6bf commit 0b11f151586a8430bc29600a13c55a6882993851
Showing with 8 additions and 1 deletion.
  1. +3 −0 Source/Core/DiscIO/Enums.cpp
  2. +5 −1 Source/Core/DiscIO/VolumeVerifier.cpp
@@ -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;

@@ -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,

0 comments on commit 0b11f15

Please sign in to comment.
You can’t perform that action at this time.