stvcd.cpp: fixed soft reset crash on Sega Saturn, caused by corrupt TOC length (nw)

This commit is contained in:
angelosa 2017-10-11 21:39:24 +02:00
parent 54995edd3f
commit d76a6659cb

View File

@ -1520,9 +1520,9 @@ void saturn_state::stvcd_reset( void )
}
// open device
if (cdrom)
//if (cdrom)
{
cdrom_close(cdrom);
//cdrom_close(cdrom);
cdrom = (cdrom_file *)nullptr;
}
@ -2720,6 +2720,7 @@ void saturn_state::stvcd_set_tray_close( void )
return;
hirqreg |= DCHG;
cdrom = (cdrom_file *)nullptr;
cdrom_image_device *cddevice = machine().device<cdrom_image_device>("cdrom");
if (cddevice!=nullptr)