summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/nmk112.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/nmk112.h')
-rw-r--r--src/mame/machine/nmk112.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mame/machine/nmk112.h b/src/mame/machine/nmk112.h
index c65e244e53a..a7a26dd5c36 100644
--- a/src/mame/machine/nmk112.h
+++ b/src/mame/machine/nmk112.h
@@ -16,12 +16,12 @@
class nmk112_device : public device_t
{
public:
- nmk112_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ nmk112_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock);
~nmk112_device() {}
// static configuration
- static void set_rom0_tag(device_t &device, const char *tag) { downcast<nmk112_device &>(device).m_tag0 = tag; }
- static void set_rom1_tag(device_t &device, const char *tag) { downcast<nmk112_device &>(device).m_tag1 = tag; }
+ static void set_rom0_tag(device_t &device, std::string tag) { downcast<nmk112_device &>(device).m_tag0 = tag; }
+ static void set_rom1_tag(device_t &device, std::string tag) { downcast<nmk112_device &>(device).m_tag1 = tag; }
static void set_page_mask(device_t &device, UINT8 mask) { downcast<nmk112_device &>(device).m_page_mask = ~mask; }
DECLARE_WRITE8_MEMBER( okibank_w );
@@ -42,7 +42,8 @@ private:
UINT8 m_current_bank[8];
- const char *m_tag0, *m_tag1;
+ std::string m_tag0;
+ std::string m_tag1;
UINT8 *m_rom0, *m_rom1;
int m_size0, m_size1;
};