Previous 15994 Revisions Next

r12124 Thursday 30th June, 2011 at 10:43:33 UTC by Miodrag Milanović
Fix for UI in case of empty slot device list (no whatsnew)
[src/emu]uimenu.c

src/emu/uimenu.c
r12123r12124
15521552   int idx = ui_slot_get_current_index(machine, slot) - 1;
15531553   if (idx==-1) return "";
15541554   if (idx==-2) idx = ui_slot_get_length(machine,slot) -1;
1555   if (idx==-1) return "";
15551556   return slot->get_slot_interfaces()[idx].name;
15561557}
15571558

Previous 15994 Revisions Next


© 1998-2018 The MESS Team