diff options
author | 2018-12-21 14:17:30 +0100 | |
---|---|---|
committer | 2018-12-21 14:17:55 +0100 | |
commit | 87323a78c0630772f47e35953ade7581e4dd028a (patch) | |
tree | 0a31282e7d8b56c777521e40576cd83e581e9337 /src/devices/bus/coleco/exp.h | |
parent | ae37434866ccfd12c9e283f64ce750830332797e (diff) |
-bus/adam/exp, adamnet, bus/coleco, bus/crvision: Removed MCFG macros. [Ryan Holtz]
-sound/es1373, gaelco, mea8000, rf5c68, sn76496, st0016: Removed MCFG macros. [Ryan Holtz]
-drivers/adam, coleco, crvision, fmtowns, gaelco2, spcforce, machine/st0016: Removed MACHINE_CONFIG macros. [Ryan Holtz]
Diffstat (limited to 'src/devices/bus/coleco/exp.h')
-rw-r--r-- | src/devices/bus/coleco/exp.h | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/src/devices/bus/coleco/exp.h b/src/devices/bus/coleco/exp.h index e722dfc1234..a4bf724c6e7 100644 --- a/src/devices/bus/coleco/exp.h +++ b/src/devices/bus/coleco/exp.h @@ -39,18 +39,6 @@ #define COLECOVISION_CARTRIDGE_SLOT_TAG "cartslot" - - -//************************************************************************** -// INTERFACE CONFIGURATION MACROS -//************************************************************************** - -#define MCFG_COLECOVISION_CARTRIDGE_SLOT_ADD(_tag, _slot_intf, _def_slot) \ - MCFG_DEVICE_ADD(_tag, COLECOVISION_CARTRIDGE_SLOT, 0) \ - MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false) - - - //************************************************************************** // TYPE DEFINITIONS //************************************************************************** @@ -65,6 +53,15 @@ class colecovision_cartridge_slot_device : public device_t, { public: // construction/destruction + template <typename T> + colecovision_cartridge_slot_device(machine_config const &mconfig, char const *tag, device_t *owner, T &&opts, char const *dflt) + : colecovision_cartridge_slot_device(mconfig, tag, owner, (uint32_t)0) + { + option_reset(); + opts(*this); + set_default_option(dflt); + set_fixed(false); + } colecovision_cartridge_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // computer interface @@ -116,11 +113,9 @@ protected: colecovision_cartridge_slot_device *m_slot; }; - // device type definition DECLARE_DEVICE_TYPE(COLECOVISION_CARTRIDGE_SLOT, colecovision_cartridge_slot_device) void colecovision_cartridges(device_slot_interface &device); - #endif // MAME_BUS_COLECO_EXP_H |