diff options
Diffstat (limited to 'src/devices/bus/bw2/exp.cpp')
-rw-r--r-- | src/devices/bus/bw2/exp.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/devices/bus/bw2/exp.cpp b/src/devices/bus/bw2/exp.cpp index 50f776b066e..030170d488c 100644 --- a/src/devices/bus/bw2/exp.cpp +++ b/src/devices/bus/bw2/exp.cpp @@ -27,8 +27,8 @@ DEFINE_DEVICE_TYPE(BW2_EXPANSION_SLOT, bw2_expansion_slot_device, "bw2_expansion // device_bw2_expansion_slot_interface - constructor //------------------------------------------------- -device_bw2_expansion_slot_interface::device_bw2_expansion_slot_interface(const machine_config &mconfig, device_t &device) - : device_slot_card_interface(mconfig,device) +device_bw2_expansion_slot_interface::device_bw2_expansion_slot_interface(const machine_config &mconfig, device_t &device) : + device_interface(device, "bw2exp") { m_slot = dynamic_cast<bw2_expansion_slot_device *>(device.owner()); } @@ -54,7 +54,8 @@ device_bw2_expansion_slot_interface::~device_bw2_expansion_slot_interface() bw2_expansion_slot_device::bw2_expansion_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, BW2_EXPANSION_SLOT, tag, owner, clock), - device_slot_interface(mconfig, *this), m_cart(nullptr) + device_single_card_slot_interface<device_bw2_expansion_slot_interface>(mconfig, *this), + m_cart(nullptr) { } @@ -74,7 +75,7 @@ bw2_expansion_slot_device::~bw2_expansion_slot_device() void bw2_expansion_slot_device::device_start() { - m_cart = dynamic_cast<device_bw2_expansion_slot_interface *>(get_card_device()); + m_cart = get_card_device(); } |