mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
stvcd.cpp: fixed soft reset crash on Sega Saturn, caused by corrupt TOC length (nw)
This commit is contained in:
parent
54995edd3f
commit
d76a6659cb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user