summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarley Travis <harleytravis123@outlook.com>2026-07-04 17:36:04 -0500
committerHarley Travis <harleytravis123@outlook.com>2026-07-04 17:36:04 -0500
commit2985a33c249621a6686b3cb90a529874f7216683 (patch)
tree40db6ec1e1f3aa0f6bfd6353fce4250e9f51d03b
parent5f3d71b514e25f9359637b4bf1a2e63e4d52abcb (diff)
downloadtempleos-floppy-driver-2985a33c249621a6686b3cb90a529874f7216683.tar.gz
Make DskImg clear the disk read cache.
-rw-r--r--Examples/DskImg.HC3
1 files changed, 3 insertions, 0 deletions
diff --git a/Examples/DskImg.HC b/Examples/DskImg.HC
index f0cb3a7..262e971 100644
--- a/Examples/DskImg.HC
+++ b/Examples/DskImg.HC
@@ -15,6 +15,9 @@ U8 DskImg()
U8 *buf=NULL;
U64 cyl,blk=0,cyl_len=bd->heads*bd->spt;
+ // Drop the read cache
+ DskCacheInvalidate(dv);
+
// Open image file for writing
CFile *img = FOpen("Floppy.IMG.C","wc",dv->size);