// $Id: DiskDrive.cc 5756 2006-10-05 21:34:18Z m9710797 $ #include "DiskDrive.hh" #include "Disk.hh" namespace openmsx { // class DiskDrive DiskDrive::~DiskDrive() { } // class DummyDrive bool DummyDrive::ready() { return false; } bool DummyDrive::writeProtected() { return true; } bool DummyDrive::doubleSided() { return false; } void DummyDrive::setSide(bool /*side*/) { // ignore } void DummyDrive::step(bool /*direction*/, const EmuTime& /*time*/) { // ignore } bool DummyDrive::track00(const EmuTime& /*time*/) { return false; // National_FS-5500F1 2nd drive detection depends on this } void DummyDrive::setMotor(bool /*status*/, const EmuTime& /*time*/) { // ignore } bool DummyDrive::indexPulse(const EmuTime& /*time*/) { return false; } int DummyDrive::indexPulseCount(const EmuTime& /*begin*/, const EmuTime& /*end*/) { return 0; } EmuTime DummyDrive::getTimeTillSector(byte /*sector*/, const EmuTime& time) { return time; } EmuTime DummyDrive::getTimeTillIndexPulse(const EmuTime& time) { return time; } void DummyDrive::setHeadLoaded(bool /*status*/, const EmuTime& /*time*/) { // ignore } bool DummyDrive::headLoaded(const EmuTime& /*time*/) { return false; } void DummyDrive::read(byte /*sector*/, byte* /*buf*/, byte& /*onDiskTrack*/, byte& /*onDiskSector*/, byte& /*onDiskSide*/, int& /*onDiskSize*/) { throw DriveEmptyException("No drive connected"); } void DummyDrive::write(byte /*sector*/, const byte* /*buf*/, byte& /*onDiskTrack*/, byte& /*onDiskSector*/, byte& /*onDiskSide*/, int& /*onDiskSize*/) { throw DriveEmptyException("No drive connected"); } void DummyDrive::getSectorHeader(byte /*sector*/, byte* /*buf*/) { throw DriveEmptyException("No drive connected"); } void DummyDrive::getTrackHeader(byte* /*buf*/) { throw DriveEmptyException("No drive connected"); } void DummyDrive::initWriteTrack() { // ignore ??? } void DummyDrive::writeTrackData(byte /*data*/) { // ignore ??? } bool DummyDrive::diskChanged() { return false; } bool DummyDrive::peekDiskChanged() const { return false; } bool DummyDrive::dummyDrive() { return true; } } // namespace openmsx