trunk/src/emu/mame.c
| r31798 | r31799 | |
| 220 | 220 | if (m_new_driver_pending) |
| 221 | 221 | { |
| 222 | 222 | astring old_system_name(m_options.system_name()); |
| 223 | bool new_system = (old_system_name != m_new_driver_pending->name); |
| 224 | // first: if we scheduled a new system, remove device options of the old system |
| 225 | // notice that, if we relaunch the same system, there is no effect on the emulation |
| 226 | if (new_system) |
| 227 | m_options.remove_device_options(); |
| 228 | // second: set up new system name (and the related device options) |
| 223 | 229 | m_options.set_system_name(m_new_driver_pending->name); |
| 224 | | astring error_string; |
| 225 | | if (old_system_name != m_options.system_name()) { |
| 226 | | m_options.remove_device_options(); |
| 230 | // third: if we scheduled a new system, take also care of ramsize options |
| 231 | if (new_system) |
| 232 | { |
| 233 | astring error_string; |
| 227 | 234 | m_options.set_value(OPTION_RAMSIZE, "", OPTION_PRIORITY_CMDLINE, error_string); |
| 228 | 235 | } |
| 229 | 236 | firstrun = true; |