diff options
Diffstat (limited to 'src/devices/bus/a7800/a78_slot.h')
-rw-r--r-- | src/devices/bus/a7800/a78_slot.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/devices/bus/a7800/a78_slot.h b/src/devices/bus/a7800/a78_slot.h index b49fedf7b82..4b091161bf1 100644 --- a/src/devices/bus/a7800/a78_slot.h +++ b/src/devices/bus/a7800/a78_slot.h @@ -12,6 +12,7 @@ TYPE DEFINITIONS ***************************************************************************/ +#define A78SLOT_ROM_REGION_TAG ":cart:rom" /* PCB */ enum @@ -89,7 +90,16 @@ class a78_cart_slot_device : public device_t, { public: // construction/destruction - a78_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + template <typename T> + a78_cart_slot_device(machine_config const &mconfig, char const *tag, device_t *owner, T &&opts, char const *dflt) + : a78_cart_slot_device(mconfig, tag, owner, (uint32_t)0) + { + option_reset(); + opts(*this); + set_default_option(dflt); + set_fixed(false); + } + a78_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); virtual ~a78_cart_slot_device(); // device-level overrides @@ -139,16 +149,4 @@ private: // device type definition DECLARE_DEVICE_TYPE(A78_CART_SLOT, a78_cart_slot_device) - -/*************************************************************************** - DEVICE CONFIGURATION MACROS - ***************************************************************************/ - -#define A78SLOT_ROM_REGION_TAG ":cart:rom" - -#define MCFG_A78_CARTRIDGE_ADD(_tag,_slot_intf,_def_slot) \ - MCFG_DEVICE_ADD(_tag, A78_CART_SLOT, 0) \ - MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false) - - #endif // MAME_BUS_A7800_A78_SLOT_H |