aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/adl_v2.cpp
diff options
context:
space:
mode:
authorWalter van Niftrik2016-08-28 13:46:11 +0200
committerWalter van Niftrik2016-08-28 18:20:14 +0200
commit90d2dd3b4085a4864889e5eb2d005199c6769819 (patch)
treebceb8812c712a34c03fdbeba2a4346c94398f1d1 /engines/adl/adl_v2.cpp
parent9dc3c78827995e214db9b94d19727f893d2f40ec (diff)
downloadscummvm-rg350-90d2dd3b4085a4864889e5eb2d005199c6769819.tar.gz
scummvm-rg350-90d2dd3b4085a4864889e5eb2d005199c6769819.tar.bz2
scummvm-rg350-90d2dd3b4085a4864889e5eb2d005199c6769819.zip
ADL: Load hires4 global pictures
Diffstat (limited to 'engines/adl/adl_v2.cpp')
-rw-r--r--engines/adl/adl_v2.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/adl/adl_v2.cpp b/engines/adl/adl_v2.cpp
index c251433f05..ae4c2d8d84 100644
--- a/engines/adl/adl_v2.cpp
+++ b/engines/adl/adl_v2.cpp
@@ -419,6 +419,16 @@ void AdlEngine_v2::loadMessages(Common::SeekableReadStream &stream, byte count)
_messages.push_back(readDataBlockPtr(stream));
}
+void AdlEngine_v2::loadPictures(Common::SeekableReadStream &stream) {
+ byte picNr;
+ while ((picNr = stream.readByte()) != 0xff) {
+ if (stream.eos() || stream.err())
+ error("Error reading global pic list");
+
+ _pictures[picNr] = readDataBlockPtr(stream);
+ }
+}
+
int AdlEngine_v2::o2_isFirstTime(ScriptEnv &e) {
OP_DEBUG_0("\t&& IS_FIRST_TIME()");