diff options
Diffstat (limited to 'src/frontend/mame/info.cpp')
-rw-r--r-- | src/frontend/mame/info.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/mame/info.cpp b/src/frontend/mame/info.cpp index dcbcc3bb3b4..8af0df55e60 100644 --- a/src/frontend/mame/info.cpp +++ b/src/frontend/mame/info.cpp @@ -1607,7 +1607,7 @@ void info_xml_creator::output_images(device_t &device, const char *root_tag) void info_xml_creator::output_slots(machine_config &config, device_t &device, const char *root_tag, device_type_set *devtypes) { - for (const device_slot_interface &slot : slot_interface_iterator(device)) + for (device_slot_interface &slot : slot_interface_iterator(device)) { // shall we list fixed slots as non-configurable? bool const listed(!slot.fixed() && strcmp(slot.device().tag(), device.tag())); @@ -1630,12 +1630,12 @@ void info_xml_creator::output_slots(machine_config &config, device_t &device, co { if (devtypes || (listed && option.second->selectable())) { - device_t *const dev = config.device_add(&device, "_dummy", option.second->devtype(), 0); + device_t *const dev = config.device_add(&slot.device(), "_dummy", option.second->devtype(), 0); if (!dev->configured()) dev->config_complete(); if (devtypes) - for (device_t &device : device_iterator(*dev)) devtypes->insert(&device.type()); + for (device_t &subdevice : device_iterator(*dev)) devtypes->insert(&subdevice.type()); if (listed && option.second->selectable()) { @@ -1647,7 +1647,7 @@ void info_xml_creator::output_slots(machine_config &config, device_t &device, co fprintf(m_output, "/>\n"); } - config.device_remove(&device, "_dummy"); + config.device_remove(&slot.device(), "_dummy"); } } |