Added ability to disable floppy image BPB checking per drive, enabled by default.

This commit is contained in:
OBattler
2017-07-27 17:14:52 +02:00
parent c211c53d32
commit 306ae2fd32
7 changed files with 106 additions and 16 deletions

View File

@@ -710,7 +710,7 @@ jump_if_fdf:
pclog("BPB reports %i sides and %i bytes per sector (%i sectors total)\n", bpb_sides, bpb_bps, bpb_total);
if (((bpb_sides < 1) || (bpb_sides > 2) || !bps_is_valid(bpb_bps) || !first_byte_is_valid(first_byte)) && !fdi && !cqm)
if ((((bpb_sides < 1) || (bpb_sides > 2) || !bps_is_valid(bpb_bps) || !first_byte_is_valid(first_byte)) && !fdi && !cqm) || !fdd_get_check_bpb(drive))
{
/* The BPB is giving us a wacky number of sides and/or bytes per sector, therefore it is most probably
not a BPB at all, so we have to guess the parameters from file size. */