Removed unselectable slot options (SLOT_INTERFACE_INTERNAL) from the -listxml output. [Curt Coder]

This commit is contained in:
Curt Coder 2014-03-11 06:54:42 +00:00
parent beff1ef9a0
commit 7d5ef42206

View File

@ -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())
{
if (option->selectable())
{
device_t *dev = const_cast<machine_config &>(m_drivlist.config()).device_add(&m_drivlist.config().root_device(), "dummy", option->devtype(), 0);
if (!dev->configured())
@ -1294,6 +1296,7 @@ void info_xml_creator::output_slots(device_t &device, const char *root_tag)
fprintf(m_output, "/>\n");
const_cast<machine_config &>(m_drivlist.config()).device_remove(&m_drivlist.config().root_device(), "dummy");
}
}
fprintf(m_output, "\t\t</slot>\n");
}