diff options
Diffstat (limited to 'src/devices/bus/cpc/cpc_rom.h')
-rw-r--r-- | src/devices/bus/cpc/cpc_rom.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/devices/bus/cpc/cpc_rom.h b/src/devices/bus/cpc/cpc_rom.h index 5f36de39fcf..d0786f6ddbd 100644 --- a/src/devices/bus/cpc/cpc_rom.h +++ b/src/devices/bus/cpc/cpc_rom.h @@ -12,28 +12,23 @@ #pragma once #include "cpcexp.h" +#include "imagedev/cartrom.h" /*** ROM image device ***/ // ======================> cpc_rom_image_device -class cpc_rom_image_device : public device_t, public device_image_interface +class cpc_rom_image_device : public device_t, public device_rom_image_interface { public: // construction/destruction cpc_rom_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual ~cpc_rom_image_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_ROM; } - - 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 "cpc_rom"; } virtual const char *file_extensions() const noexcept override { return "rom,bin"; } @@ -41,7 +36,7 @@ public: uint8_t* base() { return m_base.get(); } protected: - // device-level overrides + // device_t implementation virtual void device_start() override; private: |