mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-09 11:51:09 +08:00
SVN r4058
Move definition of LocalFile to header file. Makes sense to make it available at a larger scope.
This commit is contained in:
parent
3284a1e04c
commit
fc37564a26
@ -136,6 +136,27 @@ private:
|
||||
Bitu devnum;
|
||||
};
|
||||
|
||||
class localFile : public DOS_File {
|
||||
public:
|
||||
localFile(const char* name, FILE * handle);
|
||||
bool Read(Bit8u * data,Bit16u * size);
|
||||
bool Write(const Bit8u * data,Bit16u * size);
|
||||
bool Seek(Bit32u * pos,Bit32u type);
|
||||
bool Close();
|
||||
#ifdef WIN32
|
||||
bool LockFile(Bit8u mode, Bit32u pos, Bit16u size);
|
||||
#endif
|
||||
Bit16u GetInformation(void);
|
||||
bool UpdateDateTimeFromHost(void);
|
||||
void FlagReadOnlyMedium(void);
|
||||
void Flush(void);
|
||||
Bit32u GetSeekPos(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. */
|
||||
|
@ -37,27 +37,6 @@
|
||||
#include <sys/locking.h>
|
||||
#endif
|
||||
|
||||
class localFile : public DOS_File {
|
||||
public:
|
||||
localFile(const char* name, FILE * handle);
|
||||
bool Read(Bit8u * data,Bit16u * size);
|
||||
bool Write(const Bit8u * data,Bit16u * size);
|
||||
bool Seek(Bit32u * pos,Bit32u type);
|
||||
bool Close();
|
||||
#ifdef WIN32
|
||||
bool LockFile(Bit8u mode, Bit32u pos, Bit16u size);
|
||||
#endif
|
||||
Bit16u GetInformation(void);
|
||||
bool UpdateDateTimeFromHost(void);
|
||||
void FlagReadOnlyMedium(void);
|
||||
void Flush(void);
|
||||
Bit32u GetSeekPos(void);
|
||||
private:
|
||||
FILE * fhandle;
|
||||
bool read_only_medium;
|
||||
enum { NONE,READ,WRITE } last_action;
|
||||
};
|
||||
|
||||
#include "cp437_uni.h"
|
||||
#include "cp932_uni.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user