summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2024-02-15 15:15:06 -0500
committer AJR <ajrhacker@users.noreply.github.com>2024-02-15 15:16:25 -0500
commit01a2d4ed004ae6710d2ea5109fe1ec240d66ffcb (patch)
treedefc5ee6341b3abe1c48889cea9ff2d8715604c9
parenta7b6ad470ad7f6c93b86d28a60fd96bad62b48e0 (diff)
formats/acorn_dsk.cpp: Disallow identification of "ssd" format based on recorded sector counts unless they are divisible by 10
-rw-r--r--src/lib/formats/acorn_dsk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/acorn_dsk.cpp b/src/lib/formats/acorn_dsk.cpp
index 42a3aa61bdf..fa61c463e46 100644
--- a/src/lib/formats/acorn_dsk.cpp
+++ b/src/lib/formats/acorn_dsk.cpp
@@ -99,7 +99,7 @@ int acorn_ssd_format::find_size(util::random_read &io, uint32_t form_factor, con
sectors2 = sectors0;
}
- if (sectors0 > 0 && sectors2 > 0 && size <= (sectors0 + sectors2) * 256)
+ if (sectors0 > 0 && sectors2 > 0 && sectors0 % 10 == 0 && sectors2 % 10 == 0 && size <= (sectors0 + sectors2) * 256)
return i;
}
}