diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2012-02-21 15:12:03 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2012-02-21 15:12:03 +0000 |
commit | 7f9a1e5e97bf16ad2d606f60d58d023550f5f990 (patch) | |
tree | 9d508290f0439c053177aa6d82c68a8e1cf1df36 | |
parent | bb0f3da064fb75781cf5c9055c3eefa5c8fbcdf9 (diff) |
Fix for device_ref tag in listxml (no whatsnew)
-rw-r--r-- | src/emu/info.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emu/info.c b/src/emu/info.c index 98b46075746..48f41e70a64 100644 --- a/src/emu/info.c +++ b/src/emu/info.c @@ -391,8 +391,9 @@ void info_xml_creator::output_one() 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) + deviter.first(); + for (device_t *device = deviter.next(); device != NULL; device = deviter.next()) + if (device->rom_region() != NULL && device->shortname()!=NULL) { fprintf(m_output, "\t\t<device_ref name=\"%s\"/>\n", xml_normalize_string(device->shortname())); for (int devnum = 0; devnum < m_device_count; devnum++) |