From 45224cfb1263aa7f08afb388facc3f1bafc3a2dd Mon Sep 17 00:00:00 2001 From: Fabio Priuli Date: Mon, 18 Aug 2014 07:50:28 +0000 Subject: [PATCH] (MESS) tapectrl.c: fixed bug where systems with multiple cassette drives (e.g. PET) had no Tape Controls when no cassette was loaded in the first drive. [Fabio Priuli] --- src/emu/ui/tapectrl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/emu/ui/tapectrl.c b/src/emu/ui/tapectrl.c index 5cd55107f87..568680b30d7 100644 --- a/src/emu/ui/tapectrl.c +++ b/src/emu/ui/tapectrl.c @@ -61,7 +61,7 @@ void ui_menu_mess_tape_control::populate() cassette_state state; UINT32 flags = 0; - if (count() > 0) + if (count() > 1) { int index = current_index(); @@ -121,8 +121,11 @@ void ui_menu_mess_tape_control::populate() } else { - // no tape loaded - item_append("No Tape Image loaded", NULL, flags, NULL); + // no tape loaded in this cassette device (but there could be more than one!) + if (count() > 1) + item_append("No Tape Image loaded", "", flags, TAPECMD_SELECT); + else + item_append("No Tape Image loaded", NULL, 0, NULL); } }