summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author angelosa <lordkale4@gmail.com>2025-02-12 11:16:32 +0100
committer angelosa <lordkale4@gmail.com>2025-02-12 11:16:32 +0100
commitd665625558a4cbfcf5d9f743e9ff78692546a800 (patch)
tree2cf810484c3cb523acd406a56d049ecffdc67dc6
parente5b62f923ec7fdfcf70e2174c1eabc00e7abba5a (diff)
sega/stvcd.cpp: unload image on tray open
-rw-r--r--src/mame/sega/stvcd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mame/sega/stvcd.cpp b/src/mame/sega/stvcd.cpp
index 5a565afcc15..ff6f8e0d9b6 100644
--- a/src/mame/sega/stvcd.cpp
+++ b/src/mame/sega/stvcd.cpp
@@ -2784,7 +2784,9 @@ void stvcd_device::set_tray_open()
hirqreg |= DCHG;
cd_stat = CD_STAT_OPEN;
- // TODO: unmount image
+ // unmount the existing image, pretend that's what user wants if we are there.
+ m_cdrom_image->unload();
+
tray_is_closed = 0;
popmessage("Tray Open");