summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2019-08-25 20:41:32 -0400
committer arbee <rb6502@users.noreply.github.com>2019-08-25 20:41:32 -0400
commit0dba761f54695a59e4ade45e099c22a3a52a8110 (patch)
tree43e5dbee91748a3c2a26a56077636c77e2116a38 /src/lib/formats
parent2b0a51ea1210b7674e6c5d271631df8c601fe817 (diff)
apple2: fix regression using 35-track disks with the legacy floppy (nw)
Diffstat (limited to 'src/lib/formats')
-rw-r--r--src/lib/formats/ap2_dsk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/ap2_dsk.cpp b/src/lib/formats/ap2_dsk.cpp
index 41e1f6e6fd0..f45d2823ff5 100644
--- a/src/lib/formats/ap2_dsk.cpp
+++ b/src/lib/formats/ap2_dsk.cpp
@@ -139,7 +139,7 @@ static FLOPPY_IDENTIFY(apple2_dsk_identify)
size = floppy_image_size(floppy);
expected_size = APPLE2_TRACK_COUNT * APPLE2_SECTOR_COUNT * APPLE2_SECTOR_SIZE;
- if (size == expected_size)
+ if ((size == expected_size) || (size == 35 * APPLE2_SECTOR_COUNT * APPLE2_SECTOR_SIZE))
*vote = 100;
else if ((size > expected_size) && ((size - expected_size) < 8))
*vote = 90; /* tolerate images with up to eight fewer/extra bytes (bug #638) */