formats/acorn_dsk.cpp: Disallow identification of "ssd" format based on recorded sector counts unless they are divisible by 10

This commit is contained in:
AJR 2024-02-15 15:15:06 -05:00
parent a7b6ad470a
commit 01a2d4ed00

View File

@ -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;
}
}