If a CD-ROM sector read fails when using the Windows IOCTL code, retry using SPTI. BeOS 5 now boots from CD.

This commit is contained in:
SarahW 2017-01-05 19:22:55 +00:00
commit c183af29c1
7 changed files with 98 additions and 30 deletions

View file

@ -290,13 +290,13 @@ void initpc(int argc, char *argv[])
cdrom_null_open(cdrom_drive);
#else
cdrom_drive = 0;
ioctl_open(cdrom_drive);
ioctl_set_drive(cdrom_drive);
#endif
}
}
else
{
ioctl_open(cdrom_drive);
ioctl_set_drive(cdrom_drive);
}
}