25 #include "common/file.h" 26 #include "common/stream.h" 28 #include "scumm/detection.h" 42 void setEnc(byte value) { _encbyte = value; }
45 virtual bool openSubFile(
const Common::Path &filename) = 0;
48 int64
pos()
const override = 0;
49 int64
size()
const override = 0;
50 bool seek(int64 offs,
int whence = SEEK_SET)
override = 0;
54 bool isOpen()
const {
return !!_baseStream; }
58 virtual bool eos()
const = 0;
59 virtual uint32
read(
void *dataPtr, uint32 dataSize) = 0;
70 void setSubfileRange(int32 start, int32 len);
81 bool eos()
const override;
82 int64
pos()
const override;
83 int64
size()
const override;
84 bool seek(int64 offs,
int whence = SEEK_SET)
override;
85 uint32
read(
void *dataPtr, uint32 dataSize)
override;
91 byte _roomDisks[59] = {}, _roomTracks[59] = {}, _roomSectors[59] = {};
100 int _numGlobalObjects = 0;
102 int _numCostumes = 0;
105 const int *_resourcesPerFile;
107 bool openDisk(
char num);
109 bool generateIndex();
110 bool generateResource(
int res);
116 uint16 fileReadUint16LE();
122 bool openSubFile(
const Common::Path &filename)
override;
124 void close()
override;
125 bool eos()
const override {
return _stream->
eos(); }
126 int64
pos()
const override {
return _stream->
pos(); }
127 int64
size()
const override {
return _stream->
size(); }
128 bool seek(int64 offs,
int whence = SEEK_SET)
override {
return _stream->
seek(offs, whence); }
129 uint32
read(
void *dataPtr, uint32 dataSize)
override;
136 const char *indexFileName;
137 const char *executableName;
146 bool openWithSubRange(
const Common::Path &filename, int32 subFileStart, int32 subFileLen);
bool eos() const override
Definition: file.h:125
bool seek(int64 offs, int whence=SEEK_SET) override
Definition: file.h:128
virtual int64 size() const =0
virtual int64 pos() const =0
int64 size() const override
Definition: file.h:127
int64 pos() const override
Definition: file.h:126
virtual bool seek(int64 offset, int whence=SEEK_SET)=0
virtual void clearErr()
Definition: stream.h:71
virtual bool eos() const =0
void clearErr() override
Definition: file.h:79
int64 size() const override=0
Definition: detection.h:44
bool seek(int64 offs, int whence=SEEK_SET) override=0
int64 pos() const override=0
virtual uint32 read(void *dataPtr, uint32 dataSize)=0