file_io, DiskImage, sharpmz: Replace fd with FILE*

Replace file descriptor with a file stream in preparation for supporting
zipped files.

The API to miniz requires the use of file streams and since a file
descriptor can easily be extracted from a stream using `fileno` it's
much more convenient to use file streams everywhere.
This commit is contained in:
David Holm
2018-12-31 19:27:59 +01:00
parent 1bc427bc76
commit 0a0341bf81
5 changed files with 41 additions and 56 deletions

View File

@@ -80,7 +80,7 @@ public:
void Open(const char *filename, bool ReadOnly);
void writeTRD(int hfile);
void writeTRD(fileTYPE *hfile);
void readSCL(int hfile, bool readonly);
void readFDI(int hfile, bool readonly);
@@ -189,4 +189,4 @@ int x2trd(const char *name, fileTYPE *f);
int x2trd_ext_supp(const char *name);
//-----------------------------------------------------------------------------
#endif
#endif