aboutsummaryrefslogtreecommitdiff
path: root/engines/director/score.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2017-02-22 16:36:41 +0100
committerEugene Sandulenko2017-02-22 16:36:41 +0100
commit59f2d1359c55f9f5d7d0c8a7985ff838946e881c (patch)
tree9b479452f5a2af1aff28f686474413eec36d359f /engines/director/score.cpp
parentb9ce9f028d2224c19765750a7a9e35ac94a6e8b8 (diff)
downloadscummvm-rg350-59f2d1359c55f9f5d7d0c8a7985ff838946e881c.tar.gz
scummvm-rg350-59f2d1359c55f9f5d7d0c8a7985ff838946e881c.tar.bz2
scummvm-rg350-59f2d1359c55f9f5d7d0c8a7985ff838946e881c.zip
DIRECTOR: Simplified version checks and added more debug output
Diffstat (limited to 'engines/director/score.cpp')
-rw-r--r--engines/director/score.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 975c6efe33..9987ab59a0 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -302,6 +302,9 @@ void Score::loadCastDataVWCR(Common::SeekableSubReadStreamEndian &stream) {
if (size == 0)
continue;
+ if (debugChannelSet(5, kDebugLoading))
+ stream.hexdump(size);
+
uint8 castType = stream.readByte();
switch (castType) {
@@ -361,7 +364,7 @@ void Score::loadCastData(Common::SeekableSubReadStreamEndian &stream, uint16 id,
uint32 size1, size2, size3, castType;
byte unk1 = 0, unk2 = 0, unk3 = 0;
- if (_vm->getVersion() < 4) {
+ if (_vm->getVersion() <= 3) {
size1 = stream.readUint16();
size2 = stream.readUint32();
size3 = 0;
@@ -369,7 +372,7 @@ void Score::loadCastData(Common::SeekableSubReadStreamEndian &stream, uint16 id,
unk1 = stream.readByte();
unk2 = stream.readByte();
unk3 = stream.readByte();
- } else if (_vm->getVersion() < 5) {
+ } else if (_vm->getVersion() == 4) {
size1 = stream.readUint16() + 2;
size2 = stream.readUint32();
size3 = 0;