Previous 199869 Revisions Next

r34492 Monday 19th January, 2015 at 10:48:33 UTC by Fabio Priuli
ui: fixed bug where software items that shall create new image
devices (e.g., passthru carts) or new slot options, failed to do
so when loaded through the File Manager in the internal
UI. [Fabio Priuli]

out of whatsnew: to see the bug, try to launch with previous code nes with no
options, then mount ggenie cart and, after the reboot, try to mount any other
game in the -cart2 media switch. System will reboot, but only ggenie remains
mounted.
Alternatively, launch c64 and manually mount cbmieee from the UI. After
reboot the serial slot options in the Slot Options menu are not configurable, because
the core was not "informed" of their addition, and any cart you try to mount in -cart2
will be ignored, because the new media switch is not acknowledged by the core.
Once again, from command line everything was fine, and thus the issue was hard to
spot :)
[src/emu]emuopts.c

trunk/src/emu/emuopts.c
r243003r243004
278278         }
279279      }
280280   }
281   while (add_slot_options(false));
282   add_device_options(false);
281283}
282284
283285
r243003r243004
365367   do {
366368      num = options_count();
367369      update_slot_options();
368      while (add_slot_options(false));
369      add_device_options(false);
370370      result = core_options::parse_command_line(argc, argv, OPTION_PRIORITY_CMDLINE, error_string);
371371   } while (num != options_count());
372372
r243003r243004
502502      do {
503503         num = options_count();
504504         update_slot_options();
505         while (add_slot_options(false));
506         add_device_options(false);
507505      } while(num != options_count());
508506   }
509507}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team