Skip to content
Permalink
Browse files

VolumeVerifier: Include revision when checking region mismatch

  • Loading branch information...
JosJuice committed Oct 23, 2019
1 parent 6282b0d commit 97c4e8ff3a40c14a1fae883a7213696ca9e660b4
Showing with 5 additions and 2 deletions.
  1. +5 −2 Source/Core/DiscIO/VolumeVerifier.cpp
@@ -539,7 +539,6 @@ void VolumeVerifier::CheckMisc()
}

const Region region = m_volume.GetRegion();
const Platform platform = m_volume.GetVolumeType();

if (game_id_encrypted.size() < 4)
{
@@ -552,7 +551,11 @@ void VolumeVerifier::CheckMisc()
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)

const Platform platform = m_volume.GetVolumeType();
const std::optional<u16> revision = m_volume.GetRevision();

if (CountryCodeToRegion(country_code, platform, region, revision) != region)
{
AddProblem(Severity::Medium,
Common::GetStringT(

0 comments on commit 97c4e8f

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