summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/gameboy/gb_slot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/gameboy/gb_slot.cpp')
-rw-r--r--src/devices/bus/gameboy/gb_slot.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/devices/bus/gameboy/gb_slot.cpp b/src/devices/bus/gameboy/gb_slot.cpp
index a72eedc24d5..31d11e59dcf 100644
--- a/src/devices/bus/gameboy/gb_slot.cpp
+++ b/src/devices/bus/gameboy/gb_slot.cpp
@@ -36,13 +36,13 @@ DEFINE_DEVICE_TYPE(MEGADUCK_CART_SLOT, megaduck_cart_slot_device, "megaduck_cart
// device_gb_cart_interface - constructor
//-------------------------------------------------
-device_gb_cart_interface::device_gb_cart_interface(const machine_config &mconfig, device_t &device)
- : device_slot_card_interface(mconfig, device),
- m_rom(nullptr),
- m_rom_size(0), m_ram_bank(0), m_latch_bank(0), m_latch_bank2(0),
- has_rumble(false),
- has_timer(false),
- has_battery(false)
+device_gb_cart_interface::device_gb_cart_interface(const machine_config &mconfig, device_t &device) :
+ device_interface(device, "gbcart"),
+ m_rom(nullptr),
+ m_rom_size(0), m_ram_bank(0), m_latch_bank(0), m_latch_bank2(0),
+ has_rumble(false),
+ has_timer(false),
+ has_battery(false)
{
}
@@ -140,7 +140,7 @@ void device_gb_cart_interface::ram_map_setup(uint8_t banks)
gb_cart_slot_device_base::gb_cart_slot_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) :
device_t(mconfig, type, tag, owner, clock),
device_image_interface(mconfig, *this),
- device_slot_interface(mconfig, *this),
+ device_single_card_slot_interface<device_gb_cart_interface>(mconfig, *this),
m_type(GB_MBC_UNKNOWN),
m_cart(nullptr)
{
@@ -170,7 +170,7 @@ gb_cart_slot_device_base::~gb_cart_slot_device_base()
void gb_cart_slot_device_base::device_start()
{
- m_cart = dynamic_cast<device_gb_cart_interface *>(get_card_device());
+ m_cart = get_card_device();
}