mirror of
https://github.com/holub/mame
synced 2025-04-23 17:00:53 +03:00
(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]
This commit is contained in:
parent
c12c26f668
commit
45224cfb12
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user