summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/msx_slot/music.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/msx_slot/music.cpp')
-rw-r--r--src/devices/bus/msx_slot/music.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/devices/bus/msx_slot/music.cpp b/src/devices/bus/msx_slot/music.cpp
index da4bd27ac8a..baa6bdf0175 100644
--- a/src/devices/bus/msx_slot/music.cpp
+++ b/src/devices/bus/msx_slot/music.cpp
@@ -7,9 +7,10 @@
const device_type MSX_SLOT_MUSIC = &device_creator<msx_slot_music_device>;
-msx_slot_music_device::msx_slot_music_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock)
+msx_slot_music_device::msx_slot_music_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: msx_slot_rom_device(mconfig, MSX_SLOT_MUSIC, "MSX Internal MSX-MUSIC", tag, owner, clock, "msx_slot_music", __FILE__)
, m_ym2413(nullptr)
+ , m_ym2413_tag(nullptr)
{
}
@@ -18,7 +19,7 @@ void msx_slot_music_device::device_start()
{
msx_slot_rom_device::device_start();
- if (m_ym2413_tag.empty())
+ if (m_ym2413_tag == nullptr)
{
fatalerror("msx_slot_music_device: no YM2413 tag specified\n");
}
@@ -27,7 +28,7 @@ void msx_slot_music_device::device_start()
if (m_ym2413 == nullptr)
{
- fatalerror("msx_slot_ym2413_device: Unable to find YM2413 with tag '%s'\n", m_ym2413_tag.c_str());
+ fatalerror("msx_slot_ym2413_device: Unable to find YM2413 with tag '%s'\n", m_ym2413_tag);
}
// Install IO read/write handlers