src/emu/emuopts.c
| r13200 | r13201 | |
| 337 | 337 | bool emu_options::parse_slot_devices(int argc, char *argv[], astring &error_string, const char *name, const char *value) |
| 338 | 338 | { |
| 339 | 339 | remove_device_options(); |
| 340 | | if (name && exists(name)) { |
| 341 | | set_value(name, value, OPTION_PRIORITY_CMDLINE, error_string); |
| 342 | | } |
| 343 | 340 | bool isfirst = true; |
| 344 | 341 | bool result = core_options::parse_command_line(argc, argv, OPTION_PRIORITY_CMDLINE, error_string); |
| 345 | 342 | while (add_slot_options(isfirst)) { |
| 346 | 343 | result = core_options::parse_command_line(argc, argv, OPTION_PRIORITY_CMDLINE, error_string); |
| 347 | | if (name && exists(name)) { |
| 348 | | set_value(name, value, OPTION_PRIORITY_CMDLINE, error_string); |
| 349 | | } |
| 350 | 344 | isfirst = false; |
| 351 | 345 | } |
| 352 | 346 | add_device_options(true); |
| 347 | if (name && exists(name)) { |
| 348 | set_value(name, value, OPTION_PRIORITY_CMDLINE, error_string); |
| 349 | } |
| 353 | 350 | result = core_options::parse_command_line(argc, argv, OPTION_PRIORITY_CMDLINE, error_string); |
| 354 | 351 | return result; |
| 355 | 352 | } |
src/emu/clifront.c
| r13200 | r13201 | |
| 218 | 218 | // mount only if not already mounted |
| 219 | 219 | if (strlen(option)==0) { |
| 220 | 220 | astring val; |
| 221 | | val.printf("%s:%s",m_options.software_name(),swpart->name); |
| 221 | val.printf("%s:%s:%s",swlist->list_name[i],m_options.software_name(),swpart->name); |
| 222 | 222 | // call this in order to set slot devices according to mounting |
| 223 | 223 | m_options.parse_slot_devices(argc, argv, option_errors, image->instance_name(), val.cstr()); |
| 224 | 224 | } |