mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Adding support for formatting CoCo RS-DOS file systems (#9405)
This commit is contained in:
parent
ed94ca1181
commit
b7e654b28d
@ -41,7 +41,7 @@ void coco_rsdos_image::enumerate_f(floppy_enumerator &fe, u32 form_factor, const
|
||||
|
||||
bool coco_rsdos_image::can_format() const
|
||||
{
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool coco_rsdos_image::can_read() const
|
||||
@ -105,6 +105,12 @@ void coco_rsdos_image::impl::drop_root_ref()
|
||||
m_root = nullptr;
|
||||
}
|
||||
|
||||
void coco_rsdos_image::impl::format(const meta_data &meta)
|
||||
{
|
||||
// formatting RS-DOS is easy - just fill everything with 0xFF
|
||||
m_blockdev.fill(0xFF);
|
||||
}
|
||||
|
||||
fsblk_t::block_t coco_rsdos_image::impl::read_sector(int track, int sector) const
|
||||
{
|
||||
// the CoCo RS-DOS world thinks in terms of tracks/sectors, but we have a block device
|
||||
|
@ -105,6 +105,7 @@ private:
|
||||
|
||||
virtual meta_data metadata() override;
|
||||
virtual dir_t root() override;
|
||||
virtual void format(const meta_data &meta) override;
|
||||
|
||||
private:
|
||||
dir_t m_root;
|
||||
|
Loading…
Reference in New Issue
Block a user