flex_dsk: add workaround for Gimix Flex 3.6 expecting tracks 1 and 2 to be MFM. It will now also boot. (no whatsnew)

This commit is contained in:
mahlemiut 2014-06-26 07:26:11 +00:00
parent 4987adf1ae
commit fe28eca130
2 changed files with 4 additions and 3 deletions

View File

@ -87,7 +87,10 @@ bool flex_format::load(io_generic *io, UINT32 form_factor, floppy_image *image)
sdatapos += bps;
}
// gap sizes unverified
build_wd_track_fm(track, head, image, cell_count, spt, sects, 24, 16, 11);
if(total_tracks == 35 && spt == 18 && (track >= 1 && track <= 2)) // handle Gimix Flex 3.6 disk image, which the boot sector loads tracks 1 and 2 as MFM
build_wd_track_mfm(track, head, image, cell_count*2, spt, sects, 50, 32, 22);
else
build_wd_track_fm(track, head, image, cell_count, spt, sects, 24, 16, 11);
}
return true;
}

View File

@ -20,8 +20,6 @@ public:
virtual int identify(io_generic *io, UINT32 form_factor);
virtual bool load(io_generic *io, UINT32 form_factor, floppy_image *image);
private:
// static const format formats[];
struct sysinfo_sector
{
UINT8 unused1[16];