diff options
Diffstat (limited to 'src/mame/machine/namco06.h')
-rw-r--r-- | src/mame/machine/namco06.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/mame/machine/namco06.h b/src/mame/machine/namco06.h index 326c177a412..fe040a7ef3c 100644 --- a/src/mame/machine/namco06.h +++ b/src/mame/machine/namco06.h @@ -27,7 +27,26 @@ WRITE8_DEVICE_HANDLER( namco_06xx_ctrl_w ); /* device get info callback */ -DECLARE_LEGACY_DEVICE(NAMCO_06XX, namco_06xx); +class namco_06xx_device : public device_t +{ +public: + namco_06xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + ~namco_06xx_device() { global_free(m_token); } + + // access to legacy token + void *token() const { assert(m_token != NULL); return m_token; } +protected: + // device-level overrides + virtual void device_config_complete(); + virtual void device_start(); + virtual void device_reset(); +private: + // internal state + void *m_token; +}; + +extern const device_type NAMCO_06XX; + #endif |