summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/saturn/sat_slot.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/saturn/sat_slot.h')
-rw-r--r--src/devices/bus/saturn/sat_slot.h29
1 files changed, 7 insertions, 22 deletions
diff --git a/src/devices/bus/saturn/sat_slot.h b/src/devices/bus/saturn/sat_slot.h
index 9193cc2aa20..eff07096f79 100644
--- a/src/devices/bus/saturn/sat_slot.h
+++ b/src/devices/bus/saturn/sat_slot.h
@@ -3,7 +3,7 @@
#ifndef MAME_BUS_SATURN_SAT_SLOT_H
#define MAME_BUS_SATURN_SAT_SLOT_H
-#include "softlist_dev.h"
+#include "imagedev/cartrom.h"
/***************************************************************************
@@ -31,7 +31,7 @@ public:
int get_cart_type() const { return m_cart_type; }
- void rom_alloc(uint32_t size, const char *tag);
+ void rom_alloc(uint32_t size);
void bram_alloc(uint32_t size);
void dram0_alloc(uint32_t size);
void dram1_alloc(uint32_t size);
@@ -62,7 +62,7 @@ protected:
// ======================> sat_cart_slot_device
class sat_cart_slot_device : public device_t,
- public device_image_interface,
+ public device_cartrom_image_interface,
public device_single_card_slot_interface<device_sat_cart_interface>
{
public:
@@ -79,20 +79,15 @@ public:
sat_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
virtual ~sat_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 "sat_cart"; }
virtual const char *file_extensions() const noexcept override { return "bin"; }
- // slot interface overrides
+ // device_slot_interface implementation
virtual std::string get_default_card_software(get_default_card_software_hook &hook) const override;
int get_cart_type();
@@ -107,12 +102,9 @@ public:
virtual void write_ext_bram(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
protected:
- // device-level overrides
+ // device_t implementation
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(); }
-
private:
device_sat_cart_interface* m_cart;
};
@@ -121,11 +113,4 @@ private:
// device type definition
DECLARE_DEVICE_TYPE(SATURN_CART_SLOT, sat_cart_slot_device)
-
-/***************************************************************************
- DEVICE CONFIGURATION MACROS
- ***************************************************************************/
-
-#define SATSLOT_ROM_REGION_TAG ":cart:rom"
-
#endif // MAME_BUS_SATURN_SAT_SLOT_H