openMSX
fdc
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, 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
PatchInterface.hh
openmsx::EmptyDiskPatch
Definition
EmptyDiskPatch.hh:11
openmsx::EmptyDiskPatch::copyBlock
void copyBlock(size_t src, std::span< uint8_t > dst) const override
Definition
EmptyDiskPatch.cc:12
openmsx::EmptyDiskPatch::getFilenames
std::vector< Filename > getFilenames() const override
Definition
EmptyDiskPatch.cc:26
openmsx::EmptyDiskPatch::isEmptyPatch
bool isEmptyPatch() const override
Definition
EmptyDiskPatch.hh:18
openmsx::EmptyDiskPatch::getSize
size_t getSize() const override
Definition
EmptyDiskPatch.cc:21
openmsx::PatchInterface
Definition
PatchInterface.hh:12
openmsx::SectorAccessibleDisk
Definition
SectorAccessibleDisk.hh:19
openmsx
This file implemented 3 utility functions:
Definition
Autofire.cc:11
Generated on Sat Dec 21 2024 14:13:51 for openMSX by
1.9.8