From c9e5e3a43e1dcea78479cf71f4744b37aaa5b240 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 17 Mar 2020 12:47:46 +1000 Subject: [PATCH] CDROM: Add missing disc/console region check Fixes #106. --- src/core/cdrom.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/cdrom.cpp b/src/core/cdrom.cpp index 0d67e54d7..2e57204ed 100644 --- a/src/core/cdrom.cpp +++ b/src/core/cdrom.cpp @@ -1301,7 +1301,8 @@ void CDROM::DoIDRead() { flags_byte |= (1 << 6); // Disc Missing } - else if (m_disc_region == DiscRegion::Other) + else if (m_disc_region == DiscRegion::Other || + m_system->GetRegion() != System::GetConsoleRegionForDiscRegion(m_disc_region)) { stat_byte |= STAT_ID_ERROR; flags_byte |= (1 << 7); // Unlicensed