diff options
author | 2015-02-07 11:24:10 +0100 | |
---|---|---|
committer | 2015-02-07 11:24:32 +0100 | |
commit | d35b80ca0610f329c41c22c047e47c618a973fb0 (patch) | |
tree | e3e43efb992d82fa867ec5aefa2cdcd5f84880cf /src/lib/formats | |
parent | 74e497511013d6e9406f6bb98ec6ffa35fb89947 (diff) |
huh? (nw)
Diffstat (limited to 'src/lib/formats')
-rw-r--r-- | src/lib/formats/flex_dsk.c | 10 | ||||
-rw-r--r-- | src/lib/formats/flex_dsk.h | 7 |
2 files changed, 10 insertions, 7 deletions
diff --git a/src/lib/formats/flex_dsk.c b/src/lib/formats/flex_dsk.c index 4f1a73bb0b9..975cf246ecf 100644 --- a/src/lib/formats/flex_dsk.c +++ b/src/lib/formats/flex_dsk.c @@ -7,7 +7,7 @@ #include "emu.h" #include "flex_dsk.h" -flex_format::flex_format() : wd177x_format(formats) +flex_format::flex_format() { } @@ -26,6 +26,11 @@ const char *flex_format::extensions() const return "dsk"; } +bool flex_format::supports_save() const +{ + return true; +} + int flex_format::identify(io_generic *io, UINT32 form_factor) { io_generic_read(io, &info, 256 * 2, sizeof(struct sysinfo_sector)); @@ -97,7 +102,4 @@ bool flex_format::load(io_generic *io, UINT32 form_factor, floppy_image *image) return true; } -// Empty since geometry is determined from the disk image itself -const flex_format::format flex_format::formats[] = { {} }; - const floppy_format_type FLOPPY_FLEX_FORMAT = &floppy_image_format_creator<flex_format>; diff --git a/src/lib/formats/flex_dsk.h b/src/lib/formats/flex_dsk.h index b8c8d66318a..9348fecd5db 100644 --- a/src/lib/formats/flex_dsk.h +++ b/src/lib/formats/flex_dsk.h @@ -7,9 +7,9 @@ #ifndef FLEX_DSK_H_ #define FLEX_DSK_H_ -#include "wd177x_dsk.h" +#include "flopimg.h" -class flex_format : public wd177x_format { +class flex_format : public floppy_image_format_t { public: flex_format(); @@ -18,6 +18,8 @@ public: virtual const char *extensions() const; virtual int identify(io_generic *io, UINT32 form_factor); virtual bool load(io_generic *io, UINT32 form_factor, floppy_image *image); + virtual bool supports_save() const; + private: struct sysinfo_sector { @@ -37,7 +39,6 @@ private: UINT8 last_sec; UINT8 unused2[216]; } info; - static const format formats[]; }; extern const floppy_format_type FLOPPY_FLEX_FORMAT; |