]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Floppybridge write protection status in GUI
authorToni Wilen <twilen@winuae.net>
Fri, 19 May 2023 18:57:50 +0000 (21:57 +0300)
committerToni Wilen <twilen@winuae.net>
Fri, 19 May 2023 18:57:50 +0000 (21:57 +0300)
disk.cpp

index 2fd12baaaa4174bc38c5b06411ea3d8719396d93..b010932fd18a2ffc0276f87d67b86b8fa306cba7 100644 (file)
--- a/disk.cpp
+++ b/disk.cpp
@@ -1237,9 +1237,17 @@ static bool diskfile_iswriteprotect (struct uae_prefs *p, const TCHAR *fname_in,
        bool wrprot1 = 0, wrprot2 = 1;
        uae_char buffer[25];
        TCHAR outname[MAX_DPATH];
+       drive *drv = &floppy[num];
 
        *needwritefile = 0;
        *drvtype = DRV_35_DD;
+
+#ifdef FLOPPYBRIDGE
+       if (drv->bridge) {
+               return drive_writeprotected(drv);
+       }
+#endif
+
        DISK_validate_filename (p, fname_in, num, outname, 1, &wrprot1, NULL, &zf1);
        if (!zf1)
                return 1;