diff options
Diffstat (limited to 'src/devices/imagedev/wafadrive.h')
-rw-r--r-- | src/devices/imagedev/wafadrive.h | 35 |
1 files changed, 13 insertions, 22 deletions
diff --git a/src/devices/imagedev/wafadrive.h b/src/devices/imagedev/wafadrive.h index 72dcb99b089..79e20ea913b 100644 --- a/src/devices/imagedev/wafadrive.h +++ b/src/devices/imagedev/wafadrive.h @@ -9,50 +9,41 @@ *********************************************************************/ -#ifndef MAME_DEVICES_IMAGEDEV_WAFADRIVE_H -#define MAME_DEVICES_IMAGEDEV_WAFADRIVE_H - -#include "softlist_dev.h" +#ifndef MAME_IMAGEDEV_WAFADRIVE_H +#define MAME_IMAGEDEV_WAFADRIVE_H #pragma once +#include "magtape.h" + /*************************************************************************** TYPE DEFINITIONS ***************************************************************************/ // ======================> microdrive_image_device -class wafadrive_image_device : public device_t, - public device_image_interface +class wafadrive_image_device : public microtape_image_device { public: // construction/destruction wafadrive_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); virtual ~wafadrive_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 const software_list_loader &get_software_list_loader() const override { return image_software_list_loader::instance(); } - - virtual iodevice_t image_type() const override { return IO_MAGTAPE; } // what are these classed as? they're infinite loop tapes, in a cartridge shell that operate like discs - virtual bool is_readable() const override { return 1; } - virtual bool is_writeable() const override { return 1; } - virtual bool is_creatable() const override { return 0; } // should be (although would need a way to specify size) - virtual bool must_be_loaded() const override { return 0; } - virtual bool is_reset_on_load() const override { return 0; } - virtual const char *image_interface() const override { return "wafadrive_cart"; } - virtual const char *file_extensions() const override { return "wdr"; } + virtual bool is_creatable() const noexcept override { return false; } // should be (although would need a way to specify size) + virtual const char *image_interface() const noexcept override { return "wafadrive_cart"; } + virtual const char *file_extensions() const noexcept override { return "wdr"; } protected: - // device-level overrides - virtual void device_start() override; -private: + // device_t implementation + virtual void device_start() override ATTR_COLD; }; // device type definition DECLARE_DEVICE_TYPE(WAFADRIVE_IMAGE, wafadrive_image_device) -#endif // MAME_DEVICES_IMAGEDEV_WAFADRIVE_H +#endif // MAME_IMAGEDEV_WAFADRIVE_H |