1
0
Fork 0

Move definition of LocalFile to header file, requested by bruenor41, makes sense to make it available at a larger scope.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4058
This commit is contained in:
Peter Veenstra 2017-10-10 14:21:31 +00:00
parent 7391ee7c25
commit 21a0040650
2 changed files with 17 additions and 17 deletions

View file

@ -117,6 +117,23 @@ private:
Bitu devnum;
};
class localFile : public DOS_File {
public:
localFile(const char* name, FILE * handle);
bool Read(Bit8u * data,Bit16u * size);
bool Write(Bit8u * data,Bit16u * size);
bool Seek(Bit32u * pos,Bit32u type);
bool Close();
Bit16u GetInformation(void);
bool UpdateDateTimeFromHost(void);
void FlagReadOnlyMedium(void);
void Flush(void);
private:
FILE * fhandle;
bool read_only_medium;
enum { NONE,READ,WRITE } last_action;
};
/* The following variable can be lowered to free up some memory.
* The negative side effect: The stored searches will be turned over faster.
* Should not have impact on systems with few directory entries. */

View file

@ -30,23 +30,6 @@
#include "cross.h"
#include "inout.h"
class localFile : public DOS_File {
public:
localFile(const char* name, FILE * handle);
bool Read(Bit8u * data,Bit16u * size);
bool Write(Bit8u * data,Bit16u * size);
bool Seek(Bit32u * pos,Bit32u type);
bool Close();
Bit16u GetInformation(void);
bool UpdateDateTimeFromHost(void);
void FlagReadOnlyMedium(void);
void Flush(void);
private:
FILE * fhandle;
bool read_only_medium;
enum { NONE,READ,WRITE } last_action;
};
bool localDrive::FileCreate(DOS_File * * file,char * name,Bit16u /*attributes*/) {
//TODO Maybe care for attributes but not likely