trunk/src/emu/emuopts.c
| r30795 | r30796 | |
| 380 | 380 | bool result = core_options::parse_command_line(argc, argv, OPTION_PRIORITY_CMDLINE, error_string); |
| 381 | 381 | |
| 382 | 382 | // 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 | } |
| 389 | 391 | return result; |
| 390 | 392 | } |
| 391 | 393 | |