mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +03:00
imd_dsk: Predict the layout size correctly [O. Galibert]
This commit is contained in:
parent
95ce57cf7b
commit
d60236970a
@ -457,9 +457,9 @@ bool imd_format::load(io_generic *io, UINT32 form_factor, floppy_image *image)
|
||||
|
||||
int etpos = tpos;
|
||||
if(fm)
|
||||
etpos += sector_count*(6+5+2+11+6+1+ssize+2)*16;
|
||||
etpos += sector_count*(6+5+2+11+6+1+size+2)*16;
|
||||
else
|
||||
etpos += sector_count*(12+3+5+2+22+12+3+1+ssize+2)*16;
|
||||
etpos += sector_count*(12+3+5+2+22+12+3+1+size+2)*16;
|
||||
|
||||
if(etpos > cell_count)
|
||||
throw emu_fatalerror("imd_format: Incorrect layout on track %d head %d, expected_size=%d, current_size=%d", track, head, cell_count, etpos);
|
||||
|
Loading…
Reference in New Issue
Block a user