--- np2/fdd/fddfile.h 2005/02/09 20:11:34 1.6 +++ np2/fdd/fddfile.h 2005/03/22 04:03:15 1.8 @@ -51,6 +51,8 @@ typedef struct { typedef struct { OEMCHAR fname[MAX_PATH]; + UINT ftype; + int ro; UINT8 type; UINT8 num; UINT8 protect; @@ -73,24 +75,25 @@ void fddfile_initialize(void); void fddfile_reset2dmode(void); -const OEMCHAR *fdd_diskname(REG8 drv); +OEMCHAR *fdd_diskname(REG8 drv); +OEMCHAR *fdd_getfileex(REG8 drv, UINT *ftype, int *ro); BOOL fdd_diskready(REG8 drv); BOOL fdd_diskprotect(REG8 drv); -BOOL fdd_set(REG8 drv, const OEMCHAR *fname, UINT ftype, int ro); -BOOL fdd_eject(REG8 drv); +BRESULT fdd_set(REG8 drv, const OEMCHAR *fname, UINT ftype, int ro); +BRESULT fdd_eject(REG8 drv); -BOOL fdd_diskaccess(void); -BOOL fdd_seek(void); -BOOL fdd_seeksector(void); -BOOL fdd_read(void); -BOOL fdd_write(void); -BOOL fdd_diagread(void); -BOOL fdd_readid(void); -BOOL fdd_writeid(void); +BRESULT fdd_diskaccess(void); +BRESULT fdd_seek(void); +BRESULT fdd_seeksector(void); +BRESULT fdd_read(void); +BRESULT fdd_write(void); +BRESULT fdd_diagread(void); +BRESULT fdd_readid(void); +BRESULT fdd_writeid(void); -BOOL fdd_formatinit(void); -BOOL fdd_formating(const UINT8 *ID); +BRESULT fdd_formatinit(void); +BRESULT fdd_formating(const UINT8 *ID); BOOL fdd_isformating(void); #ifdef __cplusplus