Fixed a compile-breaking error;

Added the ability to set each floppy drive to turbo speed which will make it opperate at an effective 8000 kbps @ 300 rpm, for those who want faster but less accurate floppy timings.
This commit is contained in:
OBattler
2017-06-04 02:14:27 +02:00
parent 224368b791
commit fa174b79b2
11 changed files with 135 additions and 13 deletions

View File

@@ -30,6 +30,8 @@ static struct
int densel;
int head;
int turbo;
} fdd[FDD_NUM];
/* Flags:
@@ -312,6 +314,16 @@ int fdd_get_head(int drive)
return fdd[drive].head;
}
void fdd_set_turbo(int drive, int turbo)
{
fdd[drive].turbo = turbo;
}
int fdd_get_turbo(int drive)
{
return fdd[drive].turbo;
}
int fdd_get_densel(int drive)
{
if (drive_types[fdd[drive].type].flags & FLAG_INVERT_DENSEL)