Previous 199869 Revisions Next

r23841 Friday 21st June, 2013 at 17:22:28 UTC by Miodrag Milanović
expand listxml output with all devices having shortname (so all except cpus are in) and references to them (nw)
[src/emu]info.c

trunk/src/emu/info.c
r23840r23841
408408      device_iterator deviter(m_drivlist.config().root_device());
409409      for (device_t *device = deviter.first(); device != NULL; device = deviter.next())
410410      {
411         if (device->owner() != NULL && device->rom_region() != NULL && device->shortname()!= NULL)
411         if (device->owner() != NULL && device->shortname()!= NULL && strlen(device->shortname())!=0)
412412         {
413413            if (shortnames.add(device->shortname(), 0, FALSE) != TMERR_DUPLICATE)
414414               output_one_device(*device, device->tag());
r23840r23841
452452{
453453   device_iterator deviter(m_drivlist.config().root_device());
454454   for (device_t *device = deviter.first(); device != NULL; device = deviter.next())
455      if (device->owner() != NULL && device->rom_region() != NULL && device->shortname()!= NULL)
455      if (device->owner() != NULL && device->shortname()!= NULL && strlen(device->shortname())!=0)
456456         fprintf(m_output, "\t\t<device_ref name=\"%s\"/>\n", xml_normalize_string(device->shortname()));
457457}
458458

Previous 199869 Revisions Next


© 1997-2024 The MAME Team