summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/info.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2013-06-21 17:22:28 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2013-06-21 17:22:28 +0000
commitb868158bb1ccc14615d919cc6389cbffd09d4584 (patch)
treebfe7d778a5d31a426f8dc8321f5e38ff7f363004 /src/emu/info.c
parent54e9da32660b5ad3fa7b189de1bf1cf60f669022 (diff)
expand listxml output with all devices having shortname (so all except cpus are in) and references to them (nw)
Diffstat (limited to 'src/emu/info.c')
-rw-r--r--src/emu/info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/info.c b/src/emu/info.c
index 5d2b7cec1d3..b1ae69d092f 100644
--- a/src/emu/info.c
+++ b/src/emu/info.c
@@ -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()));
}