diff options
author | Matthew Hoops | 2011-01-31 22:45:51 +0000 |
---|---|---|
committer | Matthew Hoops | 2011-01-31 22:45:51 +0000 |
commit | 4c8a9ab24ae17d34f9e7323d7b83c77b8ac68ece (patch) | |
tree | a1b8f0c18ead60f0eacdf26e4e01ef5fae641c3b /engines/sci/resource_intern.h | |
parent | 5c1e21818ae85a97dbf0bb10054af6fca341ccfb (diff) | |
download | scummvm-rg350-4c8a9ab24ae17d34f9e7323d7b83c77b8ac68ece.tar.gz scummvm-rg350-4c8a9ab24ae17d34f9e7323d7b83c77b8ac68ece.tar.bz2 scummvm-rg350-4c8a9ab24ae17d34f9e7323d7b83c77b8ac68ece.zip |
SCI: Add support for Mac SCI1.1+ resource compression
Mac SCI1.1+ games should now start up. QFG1 and Hoyle4 are playable. GK1 starts its scripts, but errors out soon after. There are still some View bugs with each (somehow, view decompression seems to be adding a blank line after each line?).
*Much* thanks to Walter for his help.
svn-id: r55696
Diffstat (limited to 'engines/sci/resource_intern.h')
-rw-r--r-- | engines/sci/resource_intern.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/sci/resource_intern.h b/engines/sci/resource_intern.h index 14f872b46e..f7b04b644a 100644 --- a/engines/sci/resource_intern.h +++ b/engines/sci/resource_intern.h @@ -177,9 +177,6 @@ public: * Reads SCI1.1+ resources from a Mac resource fork. */ class MacResourceForkResourceSource : public ResourceSource { -protected: - Common::MacResManager *_macResMan; - public: MacResourceForkResourceSource(const Common::String &name, int volNum); ~MacResourceForkResourceSource(); @@ -187,6 +184,12 @@ public: virtual void scanSource(ResourceManager *resMan); virtual void loadResource(ResourceManager *resMan, Resource *res); + +protected: + Common::MacResManager *_macResMan; + + bool isCompressableResource(ResourceType type) const; + void decompressResource(Common::SeekableReadStream *stream, Resource *resource) const; }; #ifdef ENABLE_SCI32 |