openMSX
DummyDisk.cc
Go to the documentation of this file.
1#include "DummyDisk.hh"
2#include "DiskExceptions.hh"
3
4namespace openmsx {
5
11
13{
14 return true;
15}
16
17bool DummyDisk::isWriteProtectedImpl() const
18{
19 return true; // TODO check
20}
21
22void DummyDisk::readSectorImpl(size_t /*sector*/, SectorBuffer& /*buf*/)
23{
24 throw DriveEmptyException("No disk in drive");
25}
26
27void DummyDisk::writeSectorImpl(size_t /*sector*/, const SectorBuffer& /*buf*/)
28{
29 throw DriveEmptyException("No disk in drive");
30}
31
32} // namespace openmsx
bool isDummyDisk() const override
Definition DummyDisk.cc:12
This class represents a filename.
Definition Filename.hh:20
Abstract class for disk images that only represent the logical sector information (so not the raw tra...
void setNbSectors(size_t num)
This file implemented 3 utility functions:
Definition Autofire.cc:11