(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;
|
cassette_state state;
|
||||||
UINT32 flags = 0;
|
UINT32 flags = 0;
|
||||||
|
|
||||||
if (count() > 0)
|
if (count() > 1)
|
||||||
{
|
{
|
||||||
int index = current_index();
|
int index = current_index();
|
||||||
|
|
||||||
@ -121,8 +121,11 @@ void ui_menu_mess_tape_control::populate()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// no tape loaded
|
// no tape loaded in this cassette device (but there could be more than one!)
|
||||||
item_append("No Tape Image loaded", NULL, flags, NULL);
|
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