diff options
author | 2021-03-04 10:49:33 +0100 | |
---|---|---|
committer | 2021-03-05 10:17:20 +0100 | |
commit | 92326e47afea2dd65ec6b5ec842454fc74f046cc (patch) | |
tree | 515de40cefa3c48bf30869f9031fbf78e4ba45d4 /src/lib/formats/fs_unformatted.h | |
parent | f7011c21e11e988ec26d095f48b9070760c72bc3 (diff) |
floppy: Beginning of the support for preformatted floppy images.
What's missing:
- parameters (like the disk name when it exists)
- possibly a cleanup of ram_open and friends (but not sure of the appropriate direction in which to go)
Diffstat (limited to 'src/lib/formats/fs_unformatted.h')
-rw-r--r-- | src/lib/formats/fs_unformatted.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/lib/formats/fs_unformatted.h b/src/lib/formats/fs_unformatted.h new file mode 100644 index 00000000000..5bcaaf1e34e --- /dev/null +++ b/src/lib/formats/fs_unformatted.h @@ -0,0 +1,48 @@ +// license:BSD-3-Clause +// copyright-holders:Olivier Galibert + +// Creation of unformatted floppy images + +#ifndef MAME_FORMATS_FS_UNFORMATTED_H +#define MAME_FORMATS_FS_UNFORMATTED_H + +#pragma once + +#include "fsmgr.h" + +class fs_unformatted : public filesystem_manager_t { +public: + fs_unformatted() : filesystem_manager_t() {} + + virtual void enumerate(floppy_enumerator &fe, uint32_t form_factor, const std::vector<uint32_t> &variants) const override; + virtual void floppy_instantiate_raw(u32 key, floppy_image *image) const override; + +private: + enum { + FSI_NONE, + + FSI_8_SSSD, + FSI_8_DSSD, + FSI_8_DSDD, + + FSI_525_SSSD, + FSI_525_SSDD, + FSI_525_SSQD, + FSI_525_DSSD, + FSI_525_DSDD, + FSI_525_DSQD, + FSI_525_DSHD, + + FSI_35_SSDD, + FSI_35_DSDD, + FSI_35_DSHD, + FSI_35_DSED, + + FSI_3_DSDD, + FSI_3_SSDD, + }; +}; + +extern const filesystem_manager_type FS_UNFORMATTED; + +#endif |