summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author angelosa <salese_corp_ltd@email.it>2017-10-11 21:39:24 +0200
committer angelosa <salese_corp_ltd@email.it>2017-10-11 21:39:24 +0200
commitd76a6659cb81445c70053397ace40bc7c1258326 (patch)
tree10dfc875df2e1ba94177c05339d72b072680e0aa
parent54995edd3fe9b5e60fea32defc0f672df7085048 (diff)
stvcd.cpp: fixed soft reset crash on Sega Saturn, caused by corrupt TOC length (nw)
-rw-r--r--src/devices/machine/stvcd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/devices/machine/stvcd.cpp b/src/devices/machine/stvcd.cpp
index 21b2128a68d..e1cf25e6214 100644
--- a/src/devices/machine/stvcd.cpp
+++ b/src/devices/machine/stvcd.cpp
@@ -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)