summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/intv/slot.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/intv/slot.h')
-rw-r--r--src/devices/bus/intv/slot.h24
1 files changed, 7 insertions, 17 deletions
diff --git a/src/devices/bus/intv/slot.h b/src/devices/bus/intv/slot.h
index 517ce062952..fe497da4af4 100644
--- a/src/devices/bus/intv/slot.h
+++ b/src/devices/bus/intv/slot.h
@@ -5,7 +5,7 @@
#pragma once
-#include "softlist_dev.h"
+#include "imagedev/cartrom.h"
/***************************************************************************
@@ -70,7 +70,7 @@ public:
virtual void write_rome0(offs_t offset, uint16_t data) {}
virtual void write_romf0(offs_t offset, uint16_t data) {}
- void rom_alloc(uint32_t size, const char *tag);
+ void rom_alloc(uint32_t size);
void ram_alloc(uint32_t size);
uint8_t* get_rom_base() { return m_rom; }
uint8_t* get_ram_base() { return &m_ram[0]; }
@@ -93,7 +93,7 @@ protected:
// ======================> intv_cart_slot_device
class intv_cart_slot_device : public device_t,
- public device_image_interface,
+ public device_cartrom_image_interface,
public device_single_card_slot_interface<device_intv_cart_interface>
{
public:
@@ -111,24 +111,19 @@ public:
intv_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
virtual ~intv_cart_slot_device();
- // image-level overrides
- virtual image_init_result call_load() override;
+ // device_image_interface implementation
+ virtual std::pair<std::error_condition, std::string> 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 false; }
virtual bool is_reset_on_load() const noexcept override { return true; }
virtual const char *image_interface() const noexcept override { return "intv_cart"; }
virtual const char *file_extensions() const noexcept override { return "bin,int,rom,itv"; }
- // slot interface overrides
+ // device_slot_interface implementation
virtual std::string get_default_card_software(get_default_card_software_hook &hook) const override;
int get_type() { return m_type; }
- image_init_result load_fullpath();
+ std::error_condition load_fullpath();
void save_ram() { if (m_cart && m_cart->get_ram_size()) m_cart->save_ram(); }
@@ -172,9 +167,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_intv_cart_interface* m_cart;
};
@@ -189,8 +181,6 @@ DECLARE_DEVICE_TYPE(INTV_CART_SLOT, intv_cart_slot_device)
DEVICE CONFIGURATION MACROS
***************************************************************************/
-#define INTVSLOT_ROM_REGION_TAG ":cart:rom"
-
void intv_cart(device_slot_interface &device);
#endif // MAME_BUS_INTV_SLOT_H