From 0dba761f54695a59e4ade45e099c22a3a52a8110 Mon Sep 17 00:00:00 2001 From: arbee Date: Sun, 25 Aug 2019 20:41:32 -0400 Subject: apple2: fix regression using 35-track disks with the legacy floppy (nw) --- src/lib/formats/ap2_dsk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/formats/ap2_dsk.cpp') 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) */ -- cgit v1.2.3-70-g09d2