OXYGENHUB
◆ main openmsx / src / fdc / EmptyDiskPatch.hh
574 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef EMPTYDISKPATCH_HH
2
#define EMPTYDISKPATCH_HH
3
4
#include "PatchInterface.hh"
5
6
namespace openmsx {
7
8
class SectorAccessibleDisk;
9
10
class EmptyDiskPatch final : public PatchInterface
11
{
12
public:
13
	explicit EmptyDiskPatch(SectorAccessibleDisk& disk);
14
15
	void copyBlock(size_t src, std::span<uint8_t> dst) const override;
16
	[[nodiscard]] size_t getSize() const override;
17
	[[nodiscard]] std::vector<Filename> getFilenames() const override;
18
	[[nodiscard]] bool isEmptyPatch() const override { return true; }
19
20
private:
21
	SectorAccessibleDisk& disk;
22
};
23
24
} // namespace openmsx
25
26
#endif