diff options
| author | 2016-01-20 21:32:11 +0100 | |
|---|---|---|
| committer | 2016-01-20 21:32:11 +0100 | |
| commit | abb7f223b3bb4e16fa40f2c262aebce27091960e (patch) | |
| tree | f575d9ebd5544f9231ff64d11ca242603236f410 /src/emu/mconfig.cpp | |
| parent | d5464a5799c26e9d3100dc0fa46dcdb16cb0812e (diff) | |
Revert "Fix for hang, emu_options::add_slot_options was changed, other things are just cleanup (nw)"
This reverts commit 841a55985e60a16f745422fb9aa06c420d8be8ba.
Diffstat (limited to 'src/emu/mconfig.cpp')
| -rw-r--r-- | src/emu/mconfig.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/mconfig.cpp b/src/emu/mconfig.cpp index a138842c2a5..9e86e2206ad 100644 --- a/src/emu/mconfig.cpp +++ b/src/emu/mconfig.cpp @@ -40,9 +40,9 @@ machine_config::machine_config(const game_driver &gamedrv, emu_options &options) { device_t &owner = slot->device(); std::string selval; - bool isdefault = (options.priority(owner.tag().substr(1).c_str())==OPTION_PRIORITY_DEFAULT); - if (is_selected_driver && options.exists(owner.tag().substr(1).c_str())) - selval = options.main_value(owner.tag().substr(1).c_str()); + bool isdefault = (options.priority(owner.tag().c_str()+1)==OPTION_PRIORITY_DEFAULT); + if (is_selected_driver && options.exists(owner.tag().c_str()+1)) + selval = options.main_value(owner.tag().c_str()+1); else if (slot->default_option() != nullptr) selval.assign(slot->default_option()); @@ -67,7 +67,7 @@ machine_config::machine_config(const game_driver &gamedrv, emu_options &options) device_t::static_set_input_default(*new_dev, input_device_defaults); } else - throw emu_fatalerror("Unknown slot option '%s' in slot '%s'", selval.c_str(), owner.tag().substr(1).c_str()); + throw emu_fatalerror("Unknown slot option '%s' in slot '%s'", selval.c_str(), owner.tag().c_str()+1); } } |
