aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/pscr.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2018-05-05 20:47:18 +0200
committerEugene Sandulenko2018-05-05 23:17:35 +0200
commit5515f414afd062b78a60c71fb465e978dfef62ae (patch)
tree8a9f80f0f4b3e7f79b5c9726f63693743aecf4e8 /engines/prince/pscr.cpp
parent85aa17d9ac8c97f0939bdd9380f97c8a71fcd140 (diff)
downloadscummvm-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.cpp3
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;