22 #ifndef DRACI_BARCHIVE_H 23 #define DRACI_BARCHIVE_H 25 #include "common/str.h" 26 #include "common/file.h" 50 BArchive() : _files(NULL), _fileCount(0), _opened(
false) {}
53 _files(NULL), _fileCount(0), _opened(
false) {
61 uint size()
const {
return _fileCount; }
67 bool isOpen()
const {
return _opened; }
71 const BAFile *getFile(uint i);
75 static const char _magicNumber[];
76 static const char _dfwMagicNumber[];
77 static const uint _archiveHeaderSize = 10;
80 static const uint _fileHeaderSize = 6;
90 BAFile *loadFileDFW(uint i);
91 BAFile *loadFileBAR(uint i);
96 #endif // DRACI_BARCHIVE_H byte _stopper
Not used in BAR files, needed for DFW.
Definition: barchive.h:39
Definition: barchive.h:33
uint32 _offset
Offset of file inside archive.
Definition: barchive.h:36
uint _compLength
Compressed length (the same as _length if the file is uncompressed)
Definition: barchive.h:34
Definition: barchive.h:48
Definition: animation.h:30
bool isOpen() const
Definition: barchive.h:67
uint _length
Uncompressed length.
Definition: barchive.h:35
void close()
Definition: barchive.h:42