mirror of
https://github.com/holub/mame
synced 2025-07-10 12:15:31 +03:00
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:
parent
a7b6ad470a
commit
01a2d4ed00
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user