mirror of
https://github.com/holub/mame
synced 2025-05-17 19:24:59 +03:00
Fix ui for some image devices (no whatsnew)
This commit is contained in:
parent
a504f6bb44
commit
58b68cd490
@ -1126,7 +1126,7 @@ void ui_menu_mess_tape_control::populate()
|
||||
flags |= MENU_FLAG_RIGHT_ARROW;
|
||||
}
|
||||
|
||||
if (device->exists())
|
||||
if ((device != NULL) && (device->exists()))
|
||||
{
|
||||
double t0, t1;
|
||||
UINT32 tapeflags = 0;
|
||||
@ -1190,7 +1190,6 @@ void ui_menu_mess_tape_control::populate()
|
||||
|
||||
void ui_menu_mess_bitbanger_control::populate()
|
||||
{
|
||||
bitbanger_device *bitbanger = downcast<bitbanger_device *>(&device->device());
|
||||
int count = bitbanger_count();
|
||||
UINT32 flags = 0, mode_flags = 0, baud_flags = 0, tune_flags = 0;
|
||||
|
||||
@ -1202,6 +1201,10 @@ void ui_menu_mess_bitbanger_control::populate()
|
||||
flags |= MENU_FLAG_RIGHT_ARROW;
|
||||
}
|
||||
|
||||
if ((device != NULL) && (device->exists()))
|
||||
{
|
||||
bitbanger_device *bitbanger = downcast<bitbanger_device *>(&device->device());
|
||||
|
||||
if (bitbanger->inc_mode(TRUE))
|
||||
mode_flags |= MENU_FLAG_RIGHT_ARROW;
|
||||
|
||||
@ -1220,9 +1223,6 @@ void ui_menu_mess_bitbanger_control::populate()
|
||||
if (bitbanger->dec_tune(TRUE))
|
||||
tune_flags |= MENU_FLAG_LEFT_ARROW;
|
||||
|
||||
|
||||
if (device->exists())
|
||||
{
|
||||
/* name of bitbanger file */
|
||||
item_append(device->device().name(), device->filename(), flags, BITBANGERCMD_SELECT);
|
||||
item_append("Device Mode:", bitbanger->mode_string(), mode_flags, BITBANGERCMD_MODE);
|
||||
|
Loading…
Reference in New Issue
Block a user