22 #ifndef COMMON_PRODOS_H 23 #define COMMON_PRODOS_H 25 #include "common/memstream.h" 26 #include "common/file.h" 27 #include "common/debug.h" 28 #include "common/error.h" 40 enum FileType :
char {
46 kFileTypeSubDir = 0x0D,
47 kFileTypeSubHead = 0x0E,
48 kFileTypeVolHead = 0x0F
64 kFileExtSpread = 0x1B,
66 kFileExtPascal = 0xEF,
69 kFileExtIBProg = 0xFA,
71 kFileExtAPSProg = 0xFC,
72 kFileExtAPSVar = 0xFD,
94 void getDataBlock(byte *memOffset,
int offset,
int size)
const;
95 int parseIndexBlock(byte *memOffset,
int blockNum,
int cSize)
const;
117 static const int kBlockSize = 512;
132 byte _loader1[kBlockSize];
133 byte _loader2[kBlockSize];
162 uint8 _entriesPerBlock;
179 uint8 _entriesPerBlock;
181 uint16 _parentBlockPtr;
182 uint8 _parentEntryIndex;
183 uint8 _parentEntryLen;
205 void getDate(Date *d, uint16 date);
206 void getTime(Time *t, uint16 time);
207 void getHeader(DirHeader *h);
208 void getDirectoryHeader(DirHeader *h);
209 void getVolumeHeader(VolHeader *dir);
210 void getFileEntry(FileEntry *f);
211 void searchDirectory(DirHeader *h, uint16 p, uint16 n,
Common::String path);
212 void getVolumeBitmap(VolHeader *h);
Common::SeekableReadStream * createReadStream() const override
Common::Path getPathInArchive() const override
Common::String getName() const override
Definition: archive.h:141
Common::SeekableReadStream * createReadStreamForAltStream(Common::AltStreamType altStreamType) const override
Definition: algorithm.h:29
Common::String getFileName() const override