diff options
Diffstat (limited to 'src/lib/formats/acorn_dsk.h')
-rw-r--r-- | src/lib/formats/acorn_dsk.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/lib/formats/acorn_dsk.h b/src/lib/formats/acorn_dsk.h index 76d4462b01d..ad4c67b79ee 100644 --- a/src/lib/formats/acorn_dsk.h +++ b/src/lib/formats/acorn_dsk.h @@ -10,9 +10,10 @@ #pragma once -#ifndef __ACORN_DSK_H__ -#define __ACORN_DSK_H__ +#ifndef ACORN_DSK_H +#define ACORN_DSK_H +#include "flopimg.h" #include "wd177x_dsk.h" class acorn_ssd_format : public wd177x_format @@ -111,19 +112,19 @@ private: static const format formats[]; }; -class acorn_cpm_format : public wd177x_format +class opus_ddcpm_format : public floppy_image_format_t { public: - acorn_cpm_format(); + opus_ddcpm_format(); virtual int identify(io_generic *io, uint32_t form_factor) override; - virtual int get_image_offset(const format &f, int head, int track) override; + virtual bool load(io_generic *io, uint32_t form_factor, floppy_image *image) override; + virtual bool save(io_generic *io, floppy_image *image) override; + virtual const char *name() const override; virtual const char *description() const override; virtual const char *extensions() const override; - -private: - static const format formats[]; + virtual bool supports_save() const override; }; class torch_cpn_format : public wd177x_format @@ -144,11 +145,11 @@ private: extern const floppy_format_type FLOPPY_ACORN_SSD_FORMAT; extern const floppy_format_type FLOPPY_ACORN_DSD_FORMAT; -extern const floppy_format_type FLOPPY_OPUS_DDOS_FORMAT; +extern const floppy_format_type FLOPPY_ACORN_DOS_FORMAT; extern const floppy_format_type FLOPPY_ACORN_ADFS_OLD_FORMAT; extern const floppy_format_type FLOPPY_ACORN_ADFS_NEW_FORMAT; -extern const floppy_format_type FLOPPY_ACORN_DOS_FORMAT; -extern const floppy_format_type FLOPPY_ACORN_CPM_FORMAT; +extern const floppy_format_type FLOPPY_OPUS_DDOS_FORMAT; +extern const floppy_format_type FLOPPY_OPUS_DDCPM_FORMAT; extern const floppy_format_type FLOPPY_TORCH_CPN_FORMAT; -#endif // __ACORN_DSK_H__ +#endif // ACORN_DSK_H |