mirror of
https://github.com/holub/mame
synced 2025-07-03 00:56:03 +03:00
Removed unselectable slot options (SLOT_INTERFACE_INTERNAL) from the -listxml output. [Curt Coder]
This commit is contained in:
parent
beff1ef9a0
commit
7d5ef42206
@ -1278,6 +1278,8 @@ void info_xml_creator::output_slots(device_t &device, const char *root_tag)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
for (const device_slot_option *option = slot->first_option(); option != NULL; option = option->next())
|
for (const device_slot_option *option = slot->first_option(); option != NULL; option = option->next())
|
||||||
|
{
|
||||||
|
if (option->selectable())
|
||||||
{
|
{
|
||||||
device_t *dev = const_cast<machine_config &>(m_drivlist.config()).device_add(&m_drivlist.config().root_device(), "dummy", option->devtype(), 0);
|
device_t *dev = const_cast<machine_config &>(m_drivlist.config()).device_add(&m_drivlist.config().root_device(), "dummy", option->devtype(), 0);
|
||||||
if (!dev->configured())
|
if (!dev->configured())
|
||||||
@ -1294,6 +1296,7 @@ void info_xml_creator::output_slots(device_t &device, const char *root_tag)
|
|||||||
fprintf(m_output, "/>\n");
|
fprintf(m_output, "/>\n");
|
||||||
const_cast<machine_config &>(m_drivlist.config()).device_remove(&m_drivlist.config().root_device(), "dummy");
|
const_cast<machine_config &>(m_drivlist.config()).device_remove(&m_drivlist.config().root_device(), "dummy");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fprintf(m_output, "\t\t</slot>\n");
|
fprintf(m_output, "\t\t</slot>\n");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user