diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2016-01-16 12:24:11 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2016-01-16 14:54:42 +0100 |
commit | 1f90ceab075c4869298e963bf0a14a0aac2f1caa (patch) | |
tree | 49984b30e3c6da6a0be068dbfcd02882bdafdc08 /src/devices/bus/macpds/macpds.h | |
parent | 34161178c431b018cba0d0286951c69aee80e968 (diff) |
tags are now strings (nw)
fix start project for custom builds in Visual Studio (nw)
Diffstat (limited to 'src/devices/bus/macpds/macpds.h')
-rw-r--r-- | src/devices/bus/macpds/macpds.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/devices/bus/macpds/macpds.h b/src/devices/bus/macpds/macpds.h index db572d553f2..084958930e9 100644 --- a/src/devices/bus/macpds/macpds.h +++ b/src/devices/bus/macpds/macpds.h @@ -51,17 +51,18 @@ class macpds_slot_device : public device_t, { public: // construction/destruction - macpds_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - macpds_slot_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); + macpds_slot_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock); + macpds_slot_device(const machine_config &mconfig, device_type type, const char *name, std::string tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); // device-level overrides virtual void device_start() override; // inline configuration - static void static_set_macpds_slot(device_t &device, const char *tag, const char *slottag); + static void static_set_macpds_slot(device_t &device, std::string tag, std::string slottag); protected: // configuration - const char *m_macpds_tag, *m_macpds_slottag; + std::string m_macpds_tag; + std::string m_macpds_slottag; }; // device type definition @@ -75,15 +76,15 @@ class macpds_device : public device_t { public: // construction/destruction - macpds_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - macpds_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); + macpds_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock); + macpds_device(const machine_config &mconfig, device_type type, const char *name, std::string tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); // inline configuration - static void static_set_cputag(device_t &device, const char *tag); + static void static_set_cputag(device_t &device, std::string tag); void add_macpds_card(device_macpds_card_interface *card); void install_device(offs_t start, offs_t end, read8_delegate rhandler, write8_delegate whandler, UINT32 mask=0xffffffff); void install_device(offs_t start, offs_t end, read16_delegate rhandler, write16_delegate whandler, UINT32 mask=0xffffffff); - void install_bank(offs_t start, offs_t end, offs_t mask, offs_t mirror, const char *tag, UINT8 *data); + void install_bank(offs_t start, offs_t end, offs_t mask, offs_t mirror, std::string tag, UINT8 *data); void set_irq_line(int line, int state); protected: @@ -95,7 +96,7 @@ protected: cpu_device *m_maincpu; simple_list<device_macpds_card_interface> m_device_list; - const char *m_cputag; + std::string m_cputag; }; @@ -118,14 +119,15 @@ public: void set_macpds_device(); // helper functions for card devices - void install_bank(offs_t start, offs_t end, offs_t mask, offs_t mirror, const char *tag, UINT8 *data); + void install_bank(offs_t start, offs_t end, offs_t mask, offs_t mirror, std::string tag, UINT8 *data); void install_rom(device_t *dev, const char *romregion, UINT32 addr); // inline configuration - static void static_set_macpds_tag(device_t &device, const char *tag, const char *slottag); + static void static_set_macpds_tag(device_t &device, std::string tag, std::string slottag); public: macpds_device *m_macpds; - const char *m_macpds_tag, *m_macpds_slottag; + std::string m_macpds_tag; + std::string m_macpds_slottag; device_macpds_card_interface *m_next; }; |