--- np2/fdd/fddfile.c 2004/01/27 07:51:49 1.3 +++ np2/fdd/fddfile.c 2004/02/18 21:58:41 1.7 @@ -13,13 +13,9 @@ BYTE fddlasterror; -static const char str_88d[] = "88d"; -static const char str_98d[] = "98d"; - - // ---- -void fddfile_init(void) { +void fddfile_initialize(void) { ZeroMemory(fddfile, sizeof(fddfile)); } @@ -75,12 +71,20 @@ const char *p; (!milstr_cmp(p, str_d98)) || (!milstr_cmp(p, str_98d))) { ftype = FTYPE_D88; } + else if (!milstr_cmp(p, str_fdi)) { + ftype = FTYPE_FDI; + } else { ftype = FTYPE_BETA; } } fdd = fddfile + drv; switch(ftype) { + case FTYPE_FDI: + if (fddxdf_setfdi(fdd, fname, ro) == SUCCESS) { + return(SUCCESS); + } + case FTYPE_BETA: return(fddxdf_set(fdd, fname, ro));