diff options
Diffstat (limited to 'src/devices/bus/odyssey2')
-rw-r--r-- | src/devices/bus/odyssey2/slot.cpp | 2 | ||||
-rw-r--r-- | src/devices/bus/odyssey2/slot.h | 12 |
2 files changed, 3 insertions, 11 deletions
diff --git a/src/devices/bus/odyssey2/slot.cpp b/src/devices/bus/odyssey2/slot.cpp index 2abeb58737a..1e85ca3d4fa 100644 --- a/src/devices/bus/odyssey2/slot.cpp +++ b/src/devices/bus/odyssey2/slot.cpp @@ -52,7 +52,7 @@ device_o2_cart_interface::~device_o2_cart_interface() o2_cart_slot_device::o2_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) : device_t(mconfig, O2_CART_SLOT, tag, owner, clock) - , device_image_interface(mconfig, *this) + , device_cartrom_image_interface(mconfig, *this) , device_single_card_slot_interface<device_o2_cart_interface>(mconfig, *this) , m_type(O2_STD) , m_cart(nullptr) diff --git a/src/devices/bus/odyssey2/slot.h b/src/devices/bus/odyssey2/slot.h index db187b10bc0..09fcd34891e 100644 --- a/src/devices/bus/odyssey2/slot.h +++ b/src/devices/bus/odyssey2/slot.h @@ -5,7 +5,7 @@ #pragma once -#include "softlist_dev.h" +#include "imagedev/cartrom.h" /* @@ -94,7 +94,7 @@ protected: // ======================> o2_cart_slot_device class o2_cart_slot_device : public device_t, - public device_image_interface, + public device_cartrom_image_interface, public device_single_card_slot_interface<device_o2_cart_interface> { public: @@ -116,11 +116,6 @@ public: virtual image_init_result call_load() override; virtual void call_unload() override { } - virtual iodevice_t image_type() const noexcept override { return IO_CARTSLOT; } - virtual bool is_readable() const noexcept override { return true; } - virtual bool is_writeable() const noexcept override { return false; } - virtual bool is_creatable() const noexcept override { return false; } - virtual bool must_be_loaded() const noexcept override { return true; } virtual bool is_reset_on_load() const noexcept override { return true; } virtual const char *image_interface() const noexcept override { return "odyssey_cart"; } virtual const char *file_extensions() const noexcept override { return "bin,rom"; } @@ -148,9 +143,6 @@ protected: // device-level overrides virtual void device_start() override; - // device_image_interface implementation - virtual const software_list_loader &get_software_list_loader() const override { return rom_software_list_loader::instance(); } - int m_type; device_o2_cart_interface* m_cart; int m_b; |