mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
uimain.c: use slot interface names for filling current values in slot menu, because using command line options produces garbage at least on OS10.6.8. [Fabio Priuli]
This commit is contained in:
parent
e2e86e2deb
commit
9cb42d805f
@ -425,8 +425,11 @@ const char *ui_menu_slot_devices::slot_get_prev(device_slot_interface *slot)
|
|||||||
-------------------------------------------------*/
|
-------------------------------------------------*/
|
||||||
const char *ui_menu_slot_devices::get_slot_device(device_slot_interface *slot)
|
const char *ui_menu_slot_devices::get_slot_device(device_slot_interface *slot)
|
||||||
{
|
{
|
||||||
astring temp;
|
int idx = slot_get_current_index(slot);
|
||||||
return machine().options().main_value(temp,slot->device().tag()+1);
|
if (idx == -1)
|
||||||
|
return "";
|
||||||
|
else
|
||||||
|
return slot->get_slot_interfaces()[idx].name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user