openMSX
EmptyDiskPatch.hh
Go to the documentation of this file.
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, byte* dst, size_t num) 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:
22 };
23 
24 } // namespace openmsx
25 
26 #endif
void copyBlock(size_t src, byte *dst, size_t num) const override
std::vector< Filename > getFilenames() const override
EmptyDiskPatch(SectorAccessibleDisk &disk)
bool isEmptyPatch() const override
size_t getSize() const override
This file implemented 3 utility functions:
Definition: Autofire.cc:5