Previous 15994 Revisions Next

r14590 Thursday 23rd February, 2012 at 15:39:18 UTC by Miodrag Milanović
Fixed debug asserts (no whatsnew)
[src/emu]info.c input.h

src/emu/info.c
r14589r14590
404404//  in slots
405405//-------------------------------------------------
406406
407typedef tagmap_t<const game_driver *> slot_map;
407typedef tagmap_t<FPTR> slot_map;
408408
409409void info_xml_creator::output_devices()
410410{
411411   m_drivlist.reset();
412412   slot_map desc;
413   const game_driver &driver = m_drivlist.driver();
414413
415414   // first, run through slot devices
416415   while (m_drivlist.next())
r14589r14590
420419      for (device_t *device = deviter.next(); device != NULL; device = deviter.next()) {
421420         if (device->rom_region() != NULL && device->shortname()!= NULL)
422421         {
423            if (desc.add(device->name(), &driver, FALSE) != TMERR_DUPLICATE)
422            if (desc.add(device->name(), 0, FALSE) != TMERR_DUPLICATE)
424423               output_one_device(*device, device->tag(), emulator_info::get_xml_top());
425424         }
426425      }
r14589r14590
440439               if (!device->configured())
441440                  device->config_complete();
442441
443            if (desc.add(dev->name(), &driver, FALSE) != TMERR_DUPLICATE)
442            if (desc.add(dev->name(), 0, FALSE) != TMERR_DUPLICATE)
444443               output_one_device(*dev, temptag.cstr(), emulator_info::get_xml_top());
445444
446445            const_cast<machine_config &>(m_drivlist.config()).device_remove(&m_drivlist.config().root_device(), temptag.cstr());
src/emu/input.h
r14589r14590
535535   input_class &         m_class;            // reference to our class
536536   astring               m_name;               // string name of device
537537   int                  m_devindex;            // device index of this device
538   input_device_item *      m_item[ITEM_ID_ABSOLUTE_MAXIMUM];   // array of pointers to items
538   input_device_item *      m_item[ITEM_ID_ABSOLUTE_MAXIMUM+1];   // array of pointers to items
539539   input_item_id         m_maxitem;            // maximum item index
540540   void *               m_internal;            // internal callback pointer
541541

Previous 15994 Revisions Next


© 1998-2018 The MESS Team