expand listxml output with all devices having shortname (so all except cpus are in) and references to them (nw)

This commit is contained in:
Miodrag Milanovic 2013-06-21 17:22:28 +00:00
parent 54e9da3266
commit b868158bb1

View File

@ -408,7 +408,7 @@ void info_xml_creator::output_devices()
device_iterator deviter(m_drivlist.config().root_device());
for (device_t *device = deviter.first(); device != NULL; device = deviter.next())
{
if (device->owner() != NULL && device->rom_region() != NULL && device->shortname()!= NULL)
if (device->owner() != NULL && device->shortname()!= NULL && strlen(device->shortname())!=0)
{
if (shortnames.add(device->shortname(), 0, FALSE) != TMERR_DUPLICATE)
output_one_device(*device, device->tag());
@ -452,7 +452,7 @@ void info_xml_creator::output_device_roms()
{
device_iterator deviter(m_drivlist.config().root_device());
for (device_t *device = deviter.first(); device != NULL; device = deviter.next())
if (device->owner() != NULL && device->rom_region() != NULL && device->shortname()!= NULL)
if (device->owner() != NULL && device->shortname()!= NULL && strlen(device->shortname())!=0)
fprintf(m_output, "\t\t<device_ref name=\"%s\"/>\n", xml_normalize_string(device->shortname()));
}