CDROM: Add "Enable Region Check" option

This commit is contained in:
Connor McLaughlin
2020-04-01 01:48:37 +10:00
parent e36e70a266
commit 15c33ebedb
4 changed files with 7 additions and 2 deletions

View File

@ -1375,8 +1375,9 @@ void CDROM::DoIDRead()
{
flags_byte |= (1 << 6); // Disc Missing
}
else if (m_disc_region == DiscRegion::Other ||
m_system->GetRegion() != System::GetConsoleRegionForDiscRegion(m_disc_region))
else if (m_system->GetSettings().cdrom_region_check &&
(m_disc_region == DiscRegion::Other ||
m_system->GetRegion() != System::GetConsoleRegionForDiscRegion(m_disc_region)))
{
stat_byte |= STAT_ID_ERROR;
flags_byte |= (1 << 7); // Unlicensed