diff options
author | 2016-01-16 12:24:11 +0100 | |
---|---|---|
committer | 2016-01-16 14:54:42 +0100 | |
commit | 1f90ceab075c4869298e963bf0a14a0aac2f1caa (patch) | |
tree | 49984b30e3c6da6a0be068dbfcd02882bdafdc08 /src/emu/dislot.cpp | |
parent | 34161178c431b018cba0d0286951c69aee80e968 (diff) |
tags are now strings (nw)
fix start project for custom builds in Visual Studio (nw)
Diffstat (limited to 'src/emu/dislot.cpp')
-rw-r--r-- | src/emu/dislot.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/dislot.cpp b/src/emu/dislot.cpp index 051dc33bdb2..f5522a17aea 100644 --- a/src/emu/dislot.cpp +++ b/src/emu/dislot.cpp @@ -45,7 +45,7 @@ void device_slot_interface::static_option_add(device_t &device, const char *name device_slot_option *option = intf.option(name); if (option != nullptr) - throw emu_fatalerror("slot '%s' duplicate option '%s\n", device.tag(), name); + throw emu_fatalerror("slot '%s' duplicate option '%s\n", device.tag().c_str(), name); intf.m_options.append(name, *global_alloc(device_slot_option(name, devtype))); } @@ -56,7 +56,7 @@ device_slot_option *device_slot_interface::static_option(device_t &device, const device_slot_option *option = intf.option(name); if (option == nullptr) - throw emu_fatalerror("slot '%s' has no option '%s\n", device.tag(), name); + throw emu_fatalerror("slot '%s' has no option '%s\n", device.tag().c_str(), name); return option; } @@ -65,15 +65,15 @@ device_t* device_slot_interface::get_card_device() { std::string subtag; device_t *dev = nullptr; - if (device().mconfig().options().exists(device().tag()+1)) - subtag = device().mconfig().options().main_value(device().tag()+1); + if (device().mconfig().options().exists(device().tag().c_str()+1)) + subtag = device().mconfig().options().main_value(device().tag().c_str()+1); else if (m_default_option != nullptr) subtag.assign(m_default_option); if (!subtag.empty()) { device_slot_card_interface *intf = nullptr; dev = device().subdevice(subtag.c_str()); if (dev!=nullptr && !dev->interface(intf)) - throw emu_fatalerror("get_card_device called for device '%s' with no slot card interface", dev->tag()); + throw emu_fatalerror("get_card_device called for device '%s' with no slot card interface", dev->tag().c_str()); } return dev; } |