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

@@ -32,6 +32,8 @@ static struct
int head;
int turbo;
int check_bpb;
} fdd[FDD_NUM];
/* Flags:
@@ -329,6 +331,16 @@ int fdd_get_turbo(int drive)
return fdd[drive].turbo;
}
void fdd_set_check_bpb(int drive, int check_bpb)
{
fdd[drive].check_bpb = check_bpb;
}
int fdd_get_check_bpb(int drive)
{
return fdd[drive].check_bpb;
}
int fdd_get_densel(int drive)
{
if (drive_types[fdd[drive].type].flags & FLAG_INVERT_DENSEL)