openMSX
EmptyDiskPatch.cc
Go to the documentation of this file.
1 #include "EmptyDiskPatch.hh"
3 #include <cassert>
4 
5 namespace openmsx {
6 
8  : disk(disk_)
9 {
10 }
11 
12 void EmptyDiskPatch::copyBlock(size_t src, byte* dst, size_t num) const
13 {
14  assert((num % SectorAccessibleDisk::SECTOR_SIZE) == 0);
15  assert((src % SectorAccessibleDisk::SECTOR_SIZE) == 0);
16  auto* buf = aligned_cast<SectorBuffer*>(dst);
17  disk.readSectorsImpl(buf,
20 }
21 
23 {
25 }
26 
27 std::vector<Filename> EmptyDiskPatch::getFilenames() const
28 {
29  // return {};
30  return std::vector<Filename>();
31 }
32 
33 } // namespace openmsx
void copyBlock(size_t src, byte *dst, size_t num) const override
std::vector< Filename > getFilenames() const override
EmptyDiskPatch(SectorAccessibleDisk &disk)
size_t getSize() const override
static constexpr size_t SECTOR_SIZE
virtual void readSectorsImpl(SectorBuffer *buffers, size_t startSector, size_t nbSectors)
This file implemented 3 utility functions:
Definition: Autofire.cc:9