CDROM: Add missing disc/console region check

Fixes #106.
This commit is contained in:
Connor McLaughlin 2020-03-17 12:47:46 +10:00
parent 282998d0bb
commit c9e5e3a43e
1 changed files with 2 additions and 1 deletions

View File

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