void SoftSectoredDisk::getControlInfo(unsigned long pos, bool& hole, bool& writeProtect) { if (initialized_m) { hole = defaultHoleStatus(pos); writeProtect = checkWriteProtect(); } else { hole = true; writeProtect = false; } debugss(ssFloppyDisk, INFO, "init: %d hole: %d wp: %d\n", initialized_m, hole, writeProtect); }
void HardSectoredDisk::getControlInfo(unsigned long pos, bool& hole, bool& writeProtect) { if (initialized_m) { hole = defaultHoleStatus(pos); writeProtect = checkWriteProtect(); } else { // No disk in drive so hole light is on. hole = true; // write protect sensor is not blocked. writeProtect = false; } }