mirror of
https://github.com/holub/mame
synced 2025-05-29 09:03:08 +03:00
expand listxml output with all devices having shortname (so all except cpus are in) and references to them (nw)
This commit is contained in:
parent
54e9da3266
commit
b868158bb1
@ -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()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user