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

@@ -195,6 +195,11 @@ double disc_byteperiod(int drive)
if (drives[drive].byteperiod)
{
if (fdd_get_turbo(drive))
{
return 1.0;
}
return drives[drive].byteperiod(drive);
}
else
@@ -213,7 +218,7 @@ double disc_real_period(int drive)
dusec = (double) TIMER_USEC;
/* This is a giant hack but until the timings become even more correct, this is needed to make floppies work right on that BIOS. */
if (romset == ROM_MRTHOR)
if ((romset == ROM_MRTHOR) && !fdd_get_turbo(drive))
{
return (ddbp * dusec) / 4.0;
}