diff options
Diffstat (limited to 'src/devices/bus/odyssey2/slot.cpp')
-rw-r--r-- | src/devices/bus/odyssey2/slot.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/devices/bus/odyssey2/slot.cpp b/src/devices/bus/odyssey2/slot.cpp index 417bb27a38b..574b93ec01b 100644 --- a/src/devices/bus/odyssey2/slot.cpp +++ b/src/devices/bus/odyssey2/slot.cpp @@ -26,7 +26,7 @@ DEFINE_DEVICE_TYPE(O2_CART_SLOT, o2_cart_slot_device, "o2_cart_slot", "Odyssey 2 //------------------------------------------------- device_o2_cart_interface::device_o2_cart_interface(const machine_config &mconfig, device_t &device) - : device_slot_card_interface(mconfig, device) + : device_interface(device, "odyssey2cart") , m_rom(nullptr) , m_rom_size(0) { @@ -75,8 +75,9 @@ void device_o2_cart_interface::ram_alloc(uint32_t size) o2_cart_slot_device::o2_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, O2_CART_SLOT, tag, owner, clock) , device_image_interface(mconfig, *this) - , device_slot_interface(mconfig, *this) - , m_type(O2_STD), m_cart(nullptr) + , device_single_card_slot_interface<device_o2_cart_interface>(mconfig, *this) + , m_type(O2_STD) + , m_cart(nullptr) { } @@ -95,7 +96,7 @@ o2_cart_slot_device::~o2_cart_slot_device() void o2_cart_slot_device::device_start() { - m_cart = dynamic_cast<device_o2_cart_interface *>(get_card_device()); + m_cart = get_card_device(); } |