Previous 15994 Revisions Next

r14347 Sunday 5th February, 2012 at 07:02:54 UTC by Miodrag Milanović
Proper fix for issues with slots, removed old fix too (no whatsnew)
[src/emu]mconfig.c validity.c

src/emu/validity.c
r14346r14347
296296   // wrap in try/except to catch fatalerrors
297297   try
298298   {
299      emu_options validation_options(m_drivlist.options());
300      validation_options.remove_device_options();
301
302      machine_config config(driver, validation_options);
299      machine_config config(driver, m_drivlist.options());
303300      m_current_config = &config;
304301      validate_driver();
305302      validate_roms();
src/emu/mconfig.c
r14346r14347
6868   // construct the config
6969   (*gamedrv.machine_config)(*this, NULL);
7070
71   bool is_selected_driver = strcmp(gamedrv.name,options.system_name())==0;
7172   // intialize slot devices - make sure that any required devices have been allocated
7273   slot_interface_iterator slotiter(root_device());
7374    for (device_slot_interface *slot = slotiter.first(); slot != NULL; slot = slotiter.next())
r14346r14347
7778      {
7879         device_t &owner = slot->device();
7980         const char *selval = options.value(owner.tag()+1);
80         if (!options.exists(owner.tag()+1))
81         if (!is_selected_driver || !options.exists(owner.tag()+1))
8182            selval = slot->get_default_card(*this, options);
8283
8384         if (selval != NULL && strlen(selval) != 0)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team