diff options
Diffstat (limited to 'src/lib/formats/vdk_dsk.h')
-rw-r--r-- | src/lib/formats/vdk_dsk.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/lib/formats/vdk_dsk.h b/src/lib/formats/vdk_dsk.h new file mode 100644 index 00000000000..5570c14eab8 --- /dev/null +++ b/src/lib/formats/vdk_dsk.h @@ -0,0 +1,42 @@ +// license:GPL-2.0+ +// copyright-holders:Dirk Best +/*************************************************************************** + + VDK + + Disk image format + + Used by Paul Burgin's PC-Dragon emulator + +***************************************************************************/ + +#pragma once + +#ifndef __VDK_DSK_H__ +#define __VDK_DSK_H__ + +#include "flopimg.h" + +class vdk_format : public floppy_image_format_t +{ +public: + vdk_format(); + + virtual const char *name() const; + virtual const char *description() const; + 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 save(io_generic *io, floppy_image *image); + virtual bool supports_save() const; + +private: + static const int SECTOR_SIZE = 256; + static const int SECTOR_COUNT = 18; + static const int FIRST_SECTOR_ID = 1; +}; + +extern const floppy_format_type FLOPPY_VDK_FORMAT; + +#endif // __VDK_DSK_H__ |