src/emu/mconfig.c
| r14346 | r14347 | |
| 68 | 68 | // construct the config |
| 69 | 69 | (*gamedrv.machine_config)(*this, NULL); |
| 70 | 70 | |
| 71 | bool is_selected_driver = strcmp(gamedrv.name,options.system_name())==0; |
| 71 | 72 | // intialize slot devices - make sure that any required devices have been allocated |
| 72 | 73 | slot_interface_iterator slotiter(root_device()); |
| 73 | 74 | for (device_slot_interface *slot = slotiter.first(); slot != NULL; slot = slotiter.next()) |
| r14346 | r14347 | |
| 77 | 78 | { |
| 78 | 79 | device_t &owner = slot->device(); |
| 79 | 80 | const char *selval = options.value(owner.tag()+1); |
| 80 | | if (!options.exists(owner.tag()+1)) |
| 81 | if (!is_selected_driver || !options.exists(owner.tag()+1)) |
| 81 | 82 | selval = slot->get_default_card(*this, options); |
| 82 | 83 | |
| 83 | 84 | if (selval != NULL && strlen(selval) != 0) |