From d665625558a4cbfcf5d9f743e9ff78692546a800 Mon Sep 17 00:00:00 2001 From: angelosa Date: Wed, 12 Feb 2025 11:16:32 +0100 Subject: [PATCH] sega/stvcd.cpp: unload image on tray open --- src/mame/sega/stvcd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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");