src/emu/info.c
| r14589 | r14590 | |
| 404 | 404 | // in slots |
| 405 | 405 | //------------------------------------------------- |
| 406 | 406 | |
| 407 | | typedef tagmap_t<const game_driver *> slot_map; |
| 407 | typedef tagmap_t<FPTR> slot_map; |
| 408 | 408 | |
| 409 | 409 | void info_xml_creator::output_devices() |
| 410 | 410 | { |
| 411 | 411 | m_drivlist.reset(); |
| 412 | 412 | slot_map desc; |
| 413 | | const game_driver &driver = m_drivlist.driver(); |
| 414 | 413 | |
| 415 | 414 | // first, run through slot devices |
| 416 | 415 | while (m_drivlist.next()) |
| r14589 | r14590 | |
| 420 | 419 | for (device_t *device = deviter.next(); device != NULL; device = deviter.next()) { |
| 421 | 420 | if (device->rom_region() != NULL && device->shortname()!= NULL) |
| 422 | 421 | { |
| 423 | | if (desc.add(device->name(), &driver, FALSE) != TMERR_DUPLICATE) |
| 422 | if (desc.add(device->name(), 0, FALSE) != TMERR_DUPLICATE) |
| 424 | 423 | output_one_device(*device, device->tag(), emulator_info::get_xml_top()); |
| 425 | 424 | } |
| 426 | 425 | } |
| r14589 | r14590 | |
| 440 | 439 | if (!device->configured()) |
| 441 | 440 | device->config_complete(); |
| 442 | 441 | |
| 443 | | if (desc.add(dev->name(), &driver, FALSE) != TMERR_DUPLICATE) |
| 442 | if (desc.add(dev->name(), 0, FALSE) != TMERR_DUPLICATE) |
| 444 | 443 | output_one_device(*dev, temptag.cstr(), emulator_info::get_xml_top()); |
| 445 | 444 | |
| 446 | 445 | const_cast<machine_config &>(m_drivlist.config()).device_remove(&m_drivlist.config().root_device(), temptag.cstr()); |