Previous 15994 Revisions Next

r11565 Tuesday 17th May, 2011 at 09:20:40 UTC by Miodrag Milanović
Updated mconfig so in cases there is no option defined at all that default devices
are mounted, this fixes issue of generating valid -listxml in case dynamic devices are used (no whatsnew)
[src/emu]mconfig.c

src/emu/mconfig.c
r11564r11565
7575      const slot_interface *intf = slot->get_slot_interfaces();
7676      if (intf != NULL)
7777      {
78         const char *selval = options.value(owner.tag());
79         for (int i = 0; intf[i].name != NULL; i++)
80            if (strcmp(selval, intf[i].name) == 0)
81               device_add(&owner, intf[i].name, intf[i].devtype, 0);
78         const char *selval = options.value(owner.tag());         
79         if (options.seqid(owner.tag())==0) {     
80            selval = slot->get_default_card();
81         }
82         if (selval) {
83            for (int i = 0; intf[i].name != NULL; i++)
84               if (strcmp(selval, intf[i].name) == 0)
85                  device_add(&owner, intf[i].name, intf[i].devtype, 0);
86         }
8287      }
8388   }
8489

Previous 15994 Revisions Next


© 1998-2018 The MESS Team