openMSX
|
Abstract class for disk images that only represent the logical sector information (so not the raw track data that is sometimes needed for copy-protected disks). More...
#include <SectorBasedDisk.hh>
Protected Member Functions | |
SectorBasedDisk (DiskName name) | |
void | detectGeometry () override |
void | flushCaches () override |
void | setNbSectors (size_t num) |
~SectorBasedDisk () override=default | |
Protected Member Functions inherited from openmsx::Disk | |
Disk (DiskName name) | |
size_t | physToLog (uint8_t track, uint8_t side, uint8_t sector) |
TSS | logToPhys (size_t log) |
virtual void | detectGeometryFallback () |
void | setSectorsPerTrack (unsigned num) |
unsigned | getSectorsPerTrack () |
void | setNbSides (unsigned num) |
Protected Member Functions inherited from openmsx::SectorAccessibleDisk | |
SectorAccessibleDisk () | |
~SectorAccessibleDisk () | |
void | setPeekMode (bool peek) |
bool | isPeekMode () const |
virtual void | checkCaches () |
virtual Sha1Sum | getSha1SumImpl (FilePool &filePool) |
Additional Inherited Members | |
Public Member Functions inherited from openmsx::Disk | |
virtual | ~Disk ()=default |
const DiskName & | getName () const |
void | writeTrack (uint8_t track, uint8_t side, const RawTrack &input) |
Replace a full track in this image with the given track. | |
virtual bool | hasChanged () const |
Has the content of this disk changed, by some other means than the MSX writing to the disk. | |
bool | isDoubleSided () |
Public Member Functions inherited from openmsx::SectorAccessibleDisk | |
void | readSector (size_t sector, SectorBuffer &buf) const |
void | writeSector (size_t sector, const SectorBuffer &buf) |
void | readSectors (std::span< SectorBuffer > buffers, size_t startSector) const |
void | writeSectors (std::span< const SectorBuffer > buffers, size_t startSector) |
size_t | getNbSectors () const |
bool | isWriteProtected () const |
void | forceWriteProtect () |
virtual bool | isDummyDisk () const |
void | applyPatch (Filename patchFile) |
std::vector< Filename > | getPatches () const |
bool | hasPatches () const |
Sha1Sum | getSha1Sum (FilePool &filePool) |
Calculate SHA1 of the content of this disk. | |
virtual void | readSectorsImpl (std::span< SectorBuffer > buffers, size_t startSector) |
virtual void | readSectorImpl (size_t sector, SectorBuffer &buf) |
Static Public Attributes inherited from openmsx::SectorAccessibleDisk | |
static constexpr size_t | SECTOR_SIZE = sizeof(SectorBuffer) |
Abstract class for disk images that only represent the logical sector information (so not the raw track data that is sometimes needed for copy-protected disks).
Definition at line 13 of file SectorBasedDisk.hh.
|
explicitprotected |
Definition at line 9 of file SectorBasedDisk.cc.
|
overrideprotecteddefault |
|
overrideprotectedvirtual |
Reimplemented from openmsx::Disk.
Definition at line 157 of file SectorBasedDisk.cc.
References openmsx::Disk::detectGeometry(), openmsx::SectorAccessibleDisk::getNbSectors(), openmsx::Disk::setNbSides(), and openmsx::Disk::setSectorsPerTrack().
|
overrideprotectedvirtual |
Reimplemented from openmsx::SectorAccessibleDisk.
Definition at line 140 of file SectorBasedDisk.cc.
References openmsx::SectorAccessibleDisk::flushCaches().
Referenced by openmsx::DirAsDSK::checkCaches(), and openmsx::DirAsDSK::readSectorImpl().
|
protected |
Definition at line 151 of file SectorBasedDisk.cc.
Referenced by openmsx::DirAsDSK::DirAsDSK(), openmsx::DiskPartition::DiskPartition(), openmsx::DiskPartition::DiskPartition(), openmsx::DSKDiskImage::DSKDiskImage(), openmsx::DSKDiskImage::DSKDiskImage(), openmsx::DummyDisk::DummyDisk(), openmsx::RamDSKDiskImage::RamDSKDiskImage(), and openmsx::XSADiskImage::XSADiskImage().