diff options
author | Joost Peters | 2003-10-20 19:18:02 +0000 |
---|---|---|
committer | Joost Peters | 2003-10-20 19:18:02 +0000 |
commit | d3dd9f6216a3e7f49b3eaf6fdc8d97cfe26c219c (patch) | |
tree | 58b09432a3db5cff8a9a11db4aceb6500cae3d10 /queen/resource.h | |
parent | ee6533365df91681df4ba234c656a004172b5079 (diff) | |
download | scummvm-rg350-d3dd9f6216a3e7f49b3eaf6fdc8d97cfe26c219c.tar.gz scummvm-rg350-d3dd9f6216a3e7f49b3eaf6fdc8d97cfe26c219c.tar.bz2 scummvm-rg350-d3dd9f6216a3e7f49b3eaf6fdc8d97cfe26c219c.zip |
allow loading of rebuilt/compressed datafile
svn-id: r10917
Diffstat (limited to 'queen/resource.h')
-rw-r--r-- | queen/resource.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/queen/resource.h b/queen/resource.h index 84ee8bc137..cc9e0ac7dc 100644 --- a/queen/resource.h +++ b/queen/resource.h @@ -58,14 +58,16 @@ struct GameVersion { class Resource { public: - Resource(const Common::String &datafilePath); + Resource(const Common::String &datafilePath, const char *datafileName); ~Resource(void); uint8 *loadFile(const char *filename, uint32 skipBytes = 0, byte *dstBuf = NULL); char *getJAS2Line(); bool exists(const char *filename); bool isDemo(); bool isFloppy(); + uint8 compression() { return _compression; } uint32 fileSize(const char *filename); + File *giveMP3(const char *filename); Language getLanguage(); const char *JASVersion(); @@ -73,6 +75,7 @@ protected: File *_resourceFile; char *_JAS2Ptr; uint32 _JAS2Pos; + uint8 _compression; const Common::String _datafilePath; const GameVersion *_gameVersion; uint32 _resourceEntries; @@ -83,6 +86,7 @@ protected: int32 resourceIndex(const char *filename); uint32 fileOffset(const char *filename); bool readTableFile(); + void readTableCompResource(); static const GameVersion *detectGameVersion(uint32 dataFilesize); }; |