86F track flags handler now gets correct floppy drive type flags.

This commit is contained in:
OBattler
2016-09-04 22:20:32 +02:00
parent 04287af0ee
commit b7f65469b3
3 changed files with 8 additions and 1 deletions

View File

@@ -247,7 +247,7 @@ uint8_t d86f_track_flags(int drive)
{
uint8_t tf = d86f[drive].track_flags;
uint8_t rr = tf & 0x27;
uint8_t dr = fdd_get_type(drive) & 7;
uint8_t dr = fdd_get_flags(drive) & 7;
tf &= ~0x27;
switch (rr)

View File

@@ -177,6 +177,11 @@ int fdd_get_type(int drive)
return fdd[drive].type;
}
int fdd_get_flags(int drive)
{
return drive_types[fdd[drive].type].flags;
}
int fdd_is_525(int drive)
{
return drive_types[fdd[drive].type].flags & FLAG_525;

View File

@@ -16,6 +16,8 @@ int fdd_get_head(int drive);
void fdd_set_type(int drive, int type);
int fdd_get_type(int drive);
int fdd_get_flags(int drive);
extern int fdd_swap;
void fdd_init();