summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/psx/parallel.h
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2018-12-16 22:23:56 +0100
committer mooglyguy <therealmogminer@gmail.com>2018-12-16 22:23:56 +0100
commitb0b843c089d47535e1d16f1d8e5318342d50f9d5 (patch)
tree919ce491701ce41b6fcb573200142cbc3a617fa0 /src/devices/bus/psx/parallel.h
parentf25021c47ffab507b41b7c96960198e9569bae9c (diff)
-bus/psx/ctlrport, multitap, parallel: Removed MCFG and MACHINE_CONFIG macros. [Ryan Holtz]
-cpu/psx, sound/spu, sound/zsg2, video/psx: Removed MCFG macros. [Ryan Holtz] -drivers/konamigq, konamigv, ksys573, namcos10, namcos11, namcos12, psx, taitogn, twinkle, zn: Removed MACHINE_CONFIG macros. [Ryan Holtz]
Diffstat (limited to 'src/devices/bus/psx/parallel.h')
-rw-r--r--src/devices/bus/psx/parallel.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/devices/bus/psx/parallel.h b/src/devices/bus/psx/parallel.h
index 129b123ba3f..fc478149547 100644
--- a/src/devices/bus/psx/parallel.h
+++ b/src/devices/bus/psx/parallel.h
@@ -7,14 +7,6 @@
#pragma once
//**************************************************************************
-// INTERFACE CONFIGURATION MACROS
-//**************************************************************************
-
-#define MCFG_PSX_PARALLEL_SLOT_ADD(_tag, _slot_intf, _def_slot) \
- MCFG_DEVICE_ADD(_tag, PSX_PARALLEL_SLOT, 0) \
- MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false)
-
-//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
@@ -26,6 +18,15 @@ class psx_parallel_slot_device : public device_t, public device_slot_interface
{
public:
// construction/destruction
+ template <typename T>
+ psx_parallel_slot_device(machine_config const &mconfig, char const *tag, device_t *owner, T &&opts, char const *dflt)
+ : psx_parallel_slot_device(mconfig, tag, owner, (uint32_t)0)
+ {
+ option_reset();
+ opts(*this);
+ set_default_option(dflt);
+ set_fixed(false);
+ }
psx_parallel_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual ~psx_parallel_slot_device();