MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / drive_writeprotected

Function drive_writeprotected

src/disk.cpp:847–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845}
846
847static bool drive_writeprotected(drive *drv)
848{
849#ifdef FLOPPYBRIDGE
850 if (drv->bridge) {
851 bool v = drv->bridge->isWriteProtected();
852 return v;
853 }
854#endif
855#ifdef CATWEASEL
856 if (drv->catweasel)
857 return 1;
858#endif
859 return currprefs.floppy_read_only || drv->wrprot || drv->forcedwrprot || drv->diskfile == NULL;
860}
861
862static void reset_drive (int num)
863{

Callers 6

update_drive_guiFunction · 0.85
diskfile_iswriteprotectFunction · 0.85
drive_write_dataFunction · 0.85
DISK_status_ciabFunction · 0.85
DISK_status_ciaaFunction · 0.85
dumpdiskFunction · 0.85

Calls 1

isWriteProtectedMethod · 0.45

Tested by

no test coverage detected