summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/mapledev.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/mapledev.h')
-rw-r--r--src/mame/machine/mapledev.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mame/machine/mapledev.h b/src/mame/machine/mapledev.h
index 6d858fbd442..8dca02e8a63 100644
--- a/src/mame/machine/mapledev.h
+++ b/src/mame/machine/mapledev.h
@@ -5,12 +5,16 @@
#define MCFG_MAPLE_DEVICE_ADD(_tag, _type, _clock, _host_tag, _host_port) \
MCFG_DEVICE_ADD(_tag, _type, _clock) \
- maple_device::static_set_host(*device, _host_tag, _host_port);
+ downcast<maple_device &>(*device).set_host(_host_tag, _host_port);
class maple_device : public device_t
{
public:
- static void static_set_host(device_t &device, const char *_host_tag, int _host_port);
+ void set_host(const char *_host_tag, int _host_port)
+ {
+ host_tag = _host_tag;
+ host_port = _host_port;
+ }
virtual void maple_w(const uint32_t *data, uint32_t in_size) = 0;
void maple_r(uint32_t *data, uint32_t &out_size, bool &partial);
virtual void maple_reset();