trunk/src/lib/formats/imd_dsk.h
| r0 | r18977 | |
| 1 | /********************************************************************* |
| 2 | |
| 3 | formats/imd_dsk.h |
| 4 | |
| 5 | IMD disk images |
| 6 | |
| 7 | *********************************************************************/ |
| 8 | |
| 9 | #ifndef IMD_DSK_H |
| 10 | #define IMD_DSK_H |
| 11 | |
| 12 | #include "flopimg.h" |
| 13 | |
| 14 | |
| 15 | class imd_format : public floppy_image_format_t |
| 16 | { |
| 17 | public: |
| 18 | imd_format(); |
| 19 | |
| 20 | virtual int identify(io_generic *io, UINT32 form_factor); |
| 21 | virtual bool load(io_generic *io, UINT32 form_factor, floppy_image *image); |
| 22 | |
| 23 | virtual const char *name() const; |
| 24 | virtual const char *description() const; |
| 25 | virtual const char *extensions() const; |
| 26 | virtual bool supports_save() const; |
| 27 | |
| 28 | private: |
| 29 | void fixnum(char *start, char *end) const; |
| 30 | }; |
| 31 | |
| 32 | extern const floppy_format_type FLOPPY_IMD_FORMAT; |
| 33 | |
| 34 | #endif /* IMD_DSK_H */ |