Fixed IDE CD-ROM detection, fixes ATAPI PIO and DMA CD-ROM's.

This commit is contained in:
OBattler
2017-05-18 00:16:04 +02:00
parent a2aa29ced0
commit 69ec4f2193

View File

@@ -132,7 +132,7 @@ int ide_drive_is_cdrom(IDE *ide)
}
else
{
if ((cdrom_drives[atapi_cdrom_drives[ide->channel]].bus_type > 0) && (cdrom_drives[atapi_cdrom_drives[ide->channel]].bus_type < 3))
if ((cdrom_drives[atapi_cdrom_drives[ide->channel]].bus_type > 1) && (cdrom_drives[atapi_cdrom_drives[ide->channel]].bus_type < 4))
{
return 1;
}