summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/astrocde/slot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/astrocde/slot.cpp')
-rw-r--r--src/devices/bus/astrocde/slot.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/bus/astrocde/slot.cpp b/src/devices/bus/astrocde/slot.cpp
index 2aa78be98d9..15135e08af1 100644
--- a/src/devices/bus/astrocde/slot.cpp
+++ b/src/devices/bus/astrocde/slot.cpp
@@ -25,10 +25,10 @@ DEFINE_DEVICE_TYPE(ASTROCADE_CART_SLOT, astrocade_cart_slot_device, "astrocade_c
// device_astrocade_cart_interface - constructor
//-------------------------------------------------
-device_astrocade_cart_interface::device_astrocade_cart_interface(const machine_config &mconfig, device_t &device)
- : device_slot_card_interface(mconfig, device),
- m_rom(nullptr),
- m_rom_size(0)
+device_astrocade_cart_interface::device_astrocade_cart_interface(const machine_config &mconfig, device_t &device) :
+ device_interface(device, "astrocadecart"),
+ m_rom(nullptr),
+ m_rom_size(0)
{
}
@@ -65,7 +65,7 @@ void device_astrocade_cart_interface::rom_alloc(uint32_t size, const char *tag)
astrocade_cart_slot_device::astrocade_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
device_t(mconfig, ASTROCADE_CART_SLOT, tag, owner, clock),
device_image_interface(mconfig, *this),
- device_slot_interface(mconfig, *this),
+ device_single_card_slot_interface<device_astrocade_cart_interface>(mconfig, *this),
m_type(ASTROCADE_STD), m_cart(nullptr)
{
}
@@ -85,7 +85,7 @@ astrocade_cart_slot_device::~astrocade_cart_slot_device()
void astrocade_cart_slot_device::device_start()
{
- m_cart = dynamic_cast<device_astrocade_cart_interface *>(get_card_device());
+ m_cart = get_card_device();
}