// $Id: DummyDisk.cc,v 1.4 2005/01/28 22:42:56 m9710797 Exp $

#include "DummyDisk.hh"


namespace openmsx {

void DummyDisk::read(byte /*track*/, byte /*sector*/,
                     byte /*side*/, unsigned /*size*/, byte* /*buf*/)
{
	throw DriveEmptyException("No disk in drive");
}

void DummyDisk::write(byte /*track*/, byte /*sector*/,
                      byte /*side*/, unsigned /*size*/, const byte* /*buf*/)
{
	throw DriveEmptyException("No disk in drive");
}

void DummyDisk::getSectorHeader(byte /*track*/, byte /*sector*/,
                                byte /*side*/, byte* /*buf*/)
{
	throw DriveEmptyException("No disk in drive");
}

void DummyDisk::getTrackHeader(byte /*track*/, byte /*side*/, byte* /*buf*/)
{
	throw DriveEmptyException("No disk in drive");
}

bool DummyDisk::ready()
{
	return false;
}

bool DummyDisk::writeProtected()
{
	return true;	// TODO check
}

bool DummyDisk::doubleSided()
{
	return false;	// TODO check
}

} // namespace openmsx
