From ca207d13fc7331b27972018cdfb60170593126bc Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 19 May 2023 21:57:50 +0300 Subject: [PATCH] Floppybridge write protection status in GUI --- disk.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/disk.cpp b/disk.cpp index 2fd12baa..b010932f 100644 --- 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; -- 2.47.3