diff options
author | Eugene Sandulenko | 2018-05-05 20:47:18 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-05-05 23:17:35 +0200 |
commit | 5515f414afd062b78a60c71fb465e978dfef62ae (patch) | |
tree | 8a9f80f0f4b3e7f79b5c9726f63693743aecf4e8 /engines/prince/pscr.cpp | |
parent | 85aa17d9ac8c97f0939bdd9380f97c8a71fcd140 (diff) | |
download | scummvm-rg350-5515f414afd062b78a60c71fb465e978dfef62ae.tar.gz scummvm-rg350-5515f414afd062b78a60c71fb465e978dfef62ae.tar.bz2 scummvm-rg350-5515f414afd062b78a60c71fb465e978dfef62ae.zip |
PRINCE: Decompress files if they're extracted
Diffstat (limited to 'engines/prince/pscr.cpp')
-rw-r--r-- | engines/prince/pscr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/prince/pscr.cpp b/engines/prince/pscr.cpp index 4f79704e62..481d17cace 100644 --- a/engines/prince/pscr.cpp +++ b/engines/prince/pscr.cpp @@ -24,6 +24,7 @@ #include "common/stream.h" #include "prince/pscr.h" +#include "prince/resource.h" namespace Prince { @@ -64,6 +65,8 @@ bool PScr::loadFromStream(Common::SeekableReadStream &stream) { const Common::String pscrStreamName = Common::String::format("PS%02d", file); Common::SeekableReadStream *pscrStream = SearchMan.createReadStreamForMember(pscrStreamName); if (pscrStream != nullptr) { + pscrStream = Resource::getDecompressedStream(pscrStream); + loadSurface(*pscrStream); } delete pscrStream; |