cdrom_set_signature() now does a sanity check on the CD-ROM drive ID, fixes random crashes on hard reset.
This commit is contained in:
@@ -306,6 +306,10 @@ void cdrom_reset_cdb_len(int id)
|
||||
|
||||
void cdrom_set_signature(int id)
|
||||
{
|
||||
if (id >= CDROM_NUM)
|
||||
{
|
||||
return;
|
||||
}
|
||||
cdrom[id].phase = 1;
|
||||
cdrom[id].request_length = 0xEB14;
|
||||
}
|
||||
|
Reference in New Issue
Block a user