diff options
author | 2019-02-01 18:13:14 +0100 | |
---|---|---|
committer | 2019-02-01 18:13:14 +0100 | |
commit | 7918b8068c8ea1b16fa223061c7c761bb5893537 (patch) | |
tree | 453f60840d893d6afa58842842ce41bb5de4d9b1 /src/devices/bus/odyssey2/slot.h | |
parent | 5bb63697f066a04c3072f6e4bed52a5bb446d7c8 (diff) |
devices\bus: some more MCFG macros removal (nw)
Diffstat (limited to 'src/devices/bus/odyssey2/slot.h')
-rw-r--r-- | src/devices/bus/odyssey2/slot.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/devices/bus/odyssey2/slot.h b/src/devices/bus/odyssey2/slot.h index 28192aa3457..bfb10c025bd 100644 --- a/src/devices/bus/odyssey2/slot.h +++ b/src/devices/bus/odyssey2/slot.h @@ -65,7 +65,17 @@ class o2_cart_slot_device : public device_t, { public: // construction/destruction - o2_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + template <typename T> + o2_cart_slot_device(machine_config const &mconfig, char const *tag, device_t *owner, T &&opts, char const *dflt) + : o2_cart_slot_device(mconfig, tag, owner, 0) + { + option_reset(); + opts(*this); + set_default_option(dflt); + set_fixed(false); + } + + o2_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); virtual ~o2_cart_slot_device(); // device-level overrides @@ -114,10 +124,6 @@ DECLARE_DEVICE_TYPE(O2_CART_SLOT, o2_cart_slot_device) #define O2SLOT_ROM_REGION_TAG ":cart:rom" -#define MCFG_O2_CARTRIDGE_ADD(_tag,_slot_intf,_def_slot) \ - MCFG_DEVICE_ADD(_tag, O2_CART_SLOT, 0) \ - MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false) - void o2_cart(device_slot_interface &device); #endif // MAME_BUS_ODYSSEY2_SLOT_H |