summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/vc4000/slot.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/vc4000/slot.h')
-rw-r--r--src/devices/bus/vc4000/slot.h36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/devices/bus/vc4000/slot.h b/src/devices/bus/vc4000/slot.h
index 237253b5c42..7d9df824d4e 100644
--- a/src/devices/bus/vc4000/slot.h
+++ b/src/devices/bus/vc4000/slot.h
@@ -74,24 +74,23 @@ public:
// image-level overrides
virtual image_init_result call_load() override;
virtual void call_unload() override { }
- virtual const software_list_loader &get_software_list_loader() const override { return rom_software_list_loader::instance(); }
-
- int get_type() { return m_type; }
-
- void save_ram() { if (m_cart && m_cart->get_ram_size()) m_cart->save_ram(); }
- virtual iodevice_t image_type() const override { return IO_CARTSLOT; }
- virtual bool is_readable() const override { return 1; }
- virtual bool is_writeable() const override { return 0; }
- virtual bool is_creatable() const override { return 0; }
- virtual bool must_be_loaded() const override { return 0; }
- virtual bool is_reset_on_load() const override { return 1; }
- virtual const char *image_interface() const override { return "vc4000_cart"; }
- virtual const char *file_extensions() const override { return "bin,rom"; }
+ 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 "vc4000_cart"; }
+ virtual const char *file_extensions() const noexcept override { return "bin,rom"; }
// slot interface overrides
virtual std::string get_default_card_software(get_default_card_software_hook &hook) const override;
+ int get_type() { return m_type; }
+
+ void save_ram() { if (m_cart && m_cart->get_ram_size()) m_cart->save_ram(); }
+
// reading and writing
virtual uint8_t read_rom(offs_t offset);
virtual uint8_t extra_rom(offs_t offset);
@@ -99,9 +98,6 @@ public:
virtual void write_ram(offs_t offset, uint8_t data);
protected:
- // device-level overrides
- virtual void device_start() override;
-
vc4000_cart_slot_device(
const machine_config &mconfig,
device_type type,
@@ -109,6 +105,12 @@ protected:
device_t *owner,
uint32_t clock);
+ // 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_vc4000_cart_interface *m_cart;
};
@@ -129,7 +131,7 @@ public:
h21_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual ~h21_cart_slot_device();
- virtual const char *image_interface() const override { return "h21_cart"; }
+ virtual const char *image_interface() const noexcept override { return "h21_cart"; }
};
// device type definition