Previous 199869 Revisions Next

r30583 Wednesday 21st May, 2014 at 12:05:32 UTC by Miodrag Milanović
slots are now taken in consideration even if defined in ini only (nw)
[src/emu]clifront.c emuopts.c

trunk/src/emu/emuopts.c
r30582r30583
380380   bool result = core_options::parse_command_line(argc, argv, OPTION_PRIORITY_CMDLINE, error_string);
381381
382382   // if the system name changed, fix up the device options
383   if (old_system_name != system_name())
384   {
385      // remove any existing device options
386      remove_device_options();
387      result = parse_slot_devices(argc, argv, error_string, NULL, NULL);
388      if (exists(OPTION_RAMSIZE) && old_system_name.len()!=0)
389         set_value(OPTION_RAMSIZE, "", OPTION_PRIORITY_CMDLINE, error_string);
390   }
383   // remove any existing device options
384   if (old_system_name != system_name()) remove_device_options();
385
386   result = parse_slot_devices(argc, argv, error_string, NULL, NULL);
387   if (exists(OPTION_RAMSIZE) && old_system_name.len()!=0)
388      set_value(OPTION_RAMSIZE, "", OPTION_PRIORITY_CMDLINE, error_string);
391389   return result;
392390}
393391
trunk/src/emu/clifront.c
r30582r30583
197197            throw emu_fatalerror(MAMERR_FATALERROR, NULL);
198198         }
199199      }
200     
201      m_options.parse_standard_inis(option_errors);
200202      // parse the command line, adding any system-specific options
201203      if (!m_options.parse_command_line(argc, argv, option_errors))
202204      {

Previous 199869 Revisions Next


© 1997-2024 The MAME Team