Updates and fixes to Linux IOCTL CD-ROM code. Based on patch from Battler

This commit is contained in:
TomW 2016-04-04 15:15:08 +01:00
commit c9111b22a2
4 changed files with 127 additions and 63 deletions

View file

@ -156,14 +156,14 @@ static int cdrom_dev()
if (cdrom_enabled)
{
atapi->exit();
cdrom_drive = 0;
cdrom_drive = 1;
ioctl_open(cdrom_drive);
return D_O_K;
}
if (alert("This will reset PCem!", "Okay to continue?", NULL, "OK", "Cancel", 0, 0) == 1)
{
cdrom_drive = 0;
cdrom_drive = 1;
cdrom_enabled = 1;
ioctl_open(cdrom_drive);
saveconfig();