Previous 15994 Revisions Next

r15317 Friday 25th May, 2012 at 17:37:55 UTC by Miodrag Milanović
Fix for MT bug #04859 (no whatsnew)
also now in case ram value is not proper it change itself to default value
[src/emu]emuopts.c
[src/emu/machine]ram.c

src/emu/emuopts.c
r15316r15317
401401      // remove any existing device options
402402      remove_device_options();
403403      result = parse_slot_devices(argc, argv, error_string, NULL, NULL);
404      if (exists(OPTION_RAMSIZE))
405         set_value(OPTION_RAMSIZE, "", OPTION_PRIORITY_CMDLINE, error_string);
404406   }
405407   return result;
406408}
src/emu/machine/ram.c
r15316r15317
164164         output.catprintf(").\n");
165165
166166      mame_printf_error("%s", output.cstr());
167
168      mame_printf_warning("Setting value to default %s\n",m_default_size);
169      astring error;
170      mconfig().options().set_value(OPTION_RAMSIZE, m_default_size, OPTION_PRIORITY_CMDLINE, error);
171      assert(!error);   
167172   }
168173}
169174

Previous 15994 Revisions Next


© 1998-2018 The MESS Team