mirror of
https://github.com/holub/mame
synced 2025-04-20 23:42:22 +03:00
acorn_dsk: Allow sector counts not divisible by 10.
This commit is contained in:
parent
d982b8f013
commit
fb77363684
@ -100,7 +100,7 @@ int acorn_ssd_format::find_size(util::random_read &io, uint32_t form_factor, con
|
||||
sectors2 = sectors0;
|
||||
}
|
||||
|
||||
if (sectors0 > 0 && sectors0 % 10 == 0 && sectors2 > 0 && sectors2 % 10 == 0 && size <= (sectors0 + sectors2) * 256)
|
||||
if (sectors0 > 0 && sectors2 > 0 && size <= (sectors0 + sectors2) * 256)
|
||||
return i;
|
||||
}
|
||||
}
|
||||
@ -238,7 +238,7 @@ int acorn_dsd_format::find_size(util::random_read &io, uint32_t form_factor, con
|
||||
|
||||
LOG_FORMATS("dsd: sector count 2: %d %s\n", sectors2, sectors2 % 10 != 0 ? "invalid" : "");
|
||||
|
||||
if (sectors0 > 0 && sectors0 % 10 == 0 && sectors2 > 0 && sectors2 % 10 == 0 && size <= (sectors0 + sectors2) * 256)
|
||||
if (sectors0 > 0 && sectors2 > 0 && size <= (sectors0 + sectors2) * 256)
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user