diff options
| author | Harley Travis <harleytravis123@outlook.com> | 2026-07-04 16:37:44 -0500 |
|---|---|---|
| committer | Harley Travis <harleytravis123@outlook.com> | 2026-07-04 16:37:44 -0500 |
| commit | 379a01f050ade2a94c1688ecd7c23c4efd046768 (patch) | |
| tree | c6053601ddec28446739fddc8c424d0537e856bb /Examples | |
| parent | 21de21e606f3768edcce9bfecf327d3a3a60f53f (diff) | |
| download | templeos-floppy-driver-379a01f050ade2a94c1688ecd7c23c4efd046768.tar.gz | |
Fix DskImg.HC (again)
I fixed the file-open call to use the drive size straight from the CDrv object, and to create a contiguous file.
Diffstat (limited to 'Examples')
| -rw-r--r-- | Examples/DskImg.HC | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/DskImg.HC b/Examples/DskImg.HC index 72afe72..0d54654 100644 --- a/Examples/DskImg.HC +++ b/Examples/DskImg.HC @@ -15,7 +15,7 @@ U8 DskImg() CBlkDev *bd=dv->blkdev; // Open image file for writing - CFile *img = FOpen("Floppy.IMG","w",dv->size*bd->blk_size); + CFile *img = FOpen("Floppy.IMG.C","wc",dv->size); //Read every sector on the disk to the file BlkRead(dv,img,0,bd->max_blk); |
