mirror of
https://github.com/holub/mame
synced 2025-10-05 08:41:31 +03:00
proper exception handling (nw)
This commit is contained in:
parent
a07b82ac11
commit
cb9d158d57
@ -46,8 +46,8 @@ void device_slot_interface::static_option_add(device_t &device, const char *name
|
||||
|
||||
if (option != nullptr)
|
||||
throw emu_fatalerror("slot '%s' duplicate option '%s\n", device.tag(), name);
|
||||
|
||||
intf.m_options.insert(std::make_pair(name, std::make_unique<device_slot_option>(name, devtype)));
|
||||
if (intf.m_options.count(name) != 0) throw add_exception(name);
|
||||
intf.m_options.emplace(std::make_pair(name, std::make_unique<device_slot_option>(name, devtype)));
|
||||
}
|
||||
|
||||
device_slot_option *device_slot_interface::static_option(device_t &device, const char *name)
|
||||
|
Loading…
Reference in New Issue
Block a user