Updates and fixes to Linux IOCTL CD-ROM code. Based on patch from Battler
This commit is contained in:
parent
11eb87b436
commit
c9111b22a2
4 changed files with 127 additions and 63 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue