diff options
Diffstat (limited to 'src/devices/bus/astrocde/exp.h')
-rw-r--r-- | src/devices/bus/astrocde/exp.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/devices/bus/astrocde/exp.h b/src/devices/bus/astrocde/exp.h index 9be60975ed7..e6c97862224 100644 --- a/src/devices/bus/astrocde/exp.h +++ b/src/devices/bus/astrocde/exp.h @@ -26,6 +26,15 @@ class astrocade_exp_device : public device_t, public device_slot_interface { public: // construction/destruction + template <typename T> + astrocade_exp_device(machine_config const &mconfig, char const *tag, device_t *owner, T &&opts, char const *dflt) + : astrocade_exp_device(mconfig, tag, owner, (uint32_t)0) + { + option_reset(); + opts(*this); + set_default_option(dflt); + set_fixed(false); + } astrocade_exp_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual ~astrocade_exp_device(); @@ -43,14 +52,7 @@ protected: device_astrocade_card_interface* m_card; }; - - // device type definition DECLARE_DEVICE_TYPE(ASTROCADE_EXP_SLOT, astrocade_exp_device) - -#define MCFG_ASTROCADE_EXPANSION_SLOT_ADD(_tag, _slot_intf, _def_slot) \ - MCFG_DEVICE_ADD(_tag, ASTROCADE_EXP_SLOT, 0) \ - MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false) - #endif // MAME_BUS_ASTROCADE_EXP_H |