From f6dda6b7fbbba28d8aa1d396f9812471ed0e059d Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 26 Oct 2016 10:46:59 +0200 Subject: DIRECTOR: Skip header in VWLB resource for D4+ For some reason the pointer in D4 movies points to the header instead of data. Perhaps there is a flag which indicates that. In the meanwhile, adding a hack to skip it so we could proceed with development. --- engines/director/score.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 7b03ca1a7d..1345f4b912 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -365,6 +365,11 @@ void Score::loadCastData(Common::SeekableSubReadStreamEndian &stream) { } void Score::loadLabels(Common::SeekableSubReadStreamEndian &stream) { + if (_vm->getVersion() >= 4) { // HACK: Skip the header. Why it is there? + stream.readUint32LE(); + stream.readUint32LE(); + } + _labels = new Common::SortedArray