CDROM: Don't treat no-region discs as audio CDs

Fixes some homebrew games not booting.
This commit is contained in:
Connor McLaughlin 2021-01-10 17:09:46 +10:00
parent 2c2195b116
commit 19032750b4
1 changed files with 8 additions and 1 deletions

View File

@ -244,7 +244,14 @@ bool CDROM::DoState(StateWrapper& sw)
bool CDROM::IsMediaPS1Disc() const bool CDROM::IsMediaPS1Disc() const
{ {
return (m_disc_region != DiscRegion::Other); if (!m_reader.HasMedia())
return false;
// Check for a data track as the first track.
if (m_reader.GetMedia()->GetTrackMode(1) == CDImage::TrackMode::Audio)
return false;
return true;
} }
bool CDROM::DoesMediaRegionMatchConsole() const bool CDROM::DoesMediaRegionMatchConsole() const