mirror of
https://github.com/holub/mame
synced 2025-05-25 15:25:33 +03:00
Fixed setting default port for slot devices (no whatsnew)
This commit is contained in:
parent
4543e33ef1
commit
f077571212
@ -85,7 +85,8 @@ machine_config::machine_config(const game_driver &gamedrv, emu_options &options)
|
||||
if (strcmp(selval, intf[i].name) == 0) {
|
||||
device_t *new_dev = device_add(&owner, intf[i].name, intf[i].devtype, 0);
|
||||
found = true;
|
||||
if (!options.exists(owner.tag()))
|
||||
const char *def = slot->get_default_card(devicelist(), options);
|
||||
if ((def!=NULL) && (strcmp(def,selval)==0))
|
||||
device_t::static_set_input_default(*new_dev, slot->input_ports_defaults());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user