summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/lw30_dsk.h
blob: cfff33d58889dd7864366d9c3b88533b2ce91cfd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// license:BSD-3-Clause
// copyright-holders:Bartman/Abyss
/***************************************************************************

    Brother LW-30 Disk image format
    see https://github.com/BartmanAbyss/brother-diskconv for disk conversion tool

***************************************************************************/
#ifndef MAME_FORMATS_LW30_DSK_H
#define MAME_FORMATS_LW30_DSK_H

#pragma once

#include "flopimg.h"

class lw30_format : public floppy_image_format_t
{
public:
	virtual int identify(util::random_read& io, uint32_t form_factor, const std::vector<uint32_t> &variants) const override;
	virtual bool load(util::random_read &io, uint32_t form_factor, const std::vector<uint32_t>& variants, floppy_image &image) const override;
	virtual const char *name() const noexcept override;
	virtual const char *description() const noexcept override;
	virtual const char *extensions() const noexcept override;
	virtual bool supports_save() const noexcept override;
};

extern const lw30_format FLOPPY_LW30_FORMAT;

#endif // MAME_FORMATS_LW30_DSK_H