Skip to content

Commit 43a6194

Browse files
committed
Get rid of "is_quickdisk" and "RAW_TRK_HEAD()" macros
1 parent eaf6d0d commit 43a6194

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

inc/floppy.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
#define sampleclk_stk(x) ((x) * (SAMPLECLK_MHZ / STK_MHZ))
1717
#define stk_sampleclk(x) ((x) / (SAMPLECLK_MHZ / STK_MHZ))
1818

19-
#if TARGET == TARGET_quickdisk
20-
#define is_quickdisk TRUE
21-
#else
22-
#define is_quickdisk FALSE
23-
#endif
24-
2519
#if TARGET == TARGET_apple2
2620
#define WDATA_TOGGLE TRUE
2721
#else
@@ -101,7 +95,6 @@ struct raw_trk {
10195
int16_t gap_2, gap_3, gap_4a;
10296
uint8_t interleave, cskew, hskew;
10397
uint8_t has_iam:1, is_fm:1, invert_data:1;
104-
#define RAW_TRK_HEAD(h) ((h)+1)
10598
uint8_t head:2;
10699
};
107100

src/image/image.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ bool_t image_valid(FILINFO *fp)
103103

104104
/* Check valid extension. */
105105
filename_extension(fp->fname, ext, sizeof(ext));
106-
if (!strcmp(ext, "adf") && !is_quickdisk) {
106+
if ((TARGET == TARGET_shugart) && !strcmp(ext, "adf")) {
107107
return (ff_cfg.host == HOST_acorn) || !(fp->fsize % (2*11*512));
108108
} else {
109109
const struct image_type *type;
@@ -323,7 +323,7 @@ uint32_t image_ticks_since_index(struct image *im)
323323
uint32_t ticks = im->cur_ticks - im->ticks_since_flux;
324324
if ((int32_t)ticks < 0)
325325
ticks += im->tracklen_ticks;
326-
if (!is_quickdisk)
326+
if (TARGET != TARGET_quickdisk)
327327
ticks >>= 4;
328328
return ticks;
329329
}

0 commit comments

Comments
 (0)