Previous 199869 Revisions Next

r30796 Tuesday 3rd June, 2014 at 07:12:54 UTC by Barry Rodewald
revert r30583, it breaks -ramsize option (no whatsnew)
[src/emu]clifront.c emuopts.c

trunk/src/emu/clifront.c
r30795r30796
197197            throw emu_fatalerror(MAMERR_FATALERROR, NULL);
198198         }
199199      }
200     
201      m_options.parse_standard_inis(option_errors);
202200      // parse the command line, adding any system-specific options
203201      if (!m_options.parse_command_line(argc, argv, option_errors))
204202      {
trunk/src/emu/emuopts.c
r30795r30796
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   // 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);
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   }
389391   return result;
390392}
391393

Previous 199869 Revisions Next


© 1997-2024 The MAME Team