diff options
author | 2014-06-03 07:12:54 +0000 | |
---|---|---|
committer | 2014-06-03 07:12:54 +0000 | |
commit | 8a0691813194736219bed2fe3fc03e5717e57cb5 (patch) | |
tree | 8c7edc2187bc6a6bbebcabd3922cb0f93b0547d0 /src/emu/emuopts.c | |
parent | 15bff83c60a81eb4ffa2f4699d8e3480ce6103a8 (diff) |
revert r30583, it breaks -ramsize option (no whatsnew)
Diffstat (limited to 'src/emu/emuopts.c')
-rw-r--r-- | src/emu/emuopts.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/emu/emuopts.c b/src/emu/emuopts.c index 72c1098a06e..6d59d276928 100644 --- a/src/emu/emuopts.c +++ b/src/emu/emuopts.c @@ -380,12 +380,14 @@ bool emu_options::parse_command_line(int argc, char *argv[], astring &error_stri bool result = core_options::parse_command_line(argc, argv, OPTION_PRIORITY_CMDLINE, error_string); // if the system name changed, fix up the device options - // remove any existing device options - if (old_system_name != system_name()) remove_device_options(); - - result = parse_slot_devices(argc, argv, error_string, NULL, NULL); - if (exists(OPTION_RAMSIZE) && old_system_name.len()!=0) - set_value(OPTION_RAMSIZE, "", OPTION_PRIORITY_CMDLINE, error_string); + if (old_system_name != system_name()) + { + // remove any existing device options + remove_device_options(); + result = parse_slot_devices(argc, argv, error_string, NULL, NULL); + if (exists(OPTION_RAMSIZE) && old_system_name.len()!=0) + set_value(OPTION_RAMSIZE, "", OPTION_PRIORITY_CMDLINE, error_string); + } return result; } |