| 845 | } |
| 846 | |
| 847 | static 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 | |
| 862 | static void reset_drive (int num) |
| 863 | { |
no test coverage detected