mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 10:35:46 -04:00
CDROM: Don't treat no-region discs as audio CDs
Fixes some homebrew games not booting.
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user