From f6399b7d13976d703590ba667b02c806c905209b Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 14 Nov 2012 14:04:44 -0500 Subject: DIRECTOR: Fix some v3 exe fields Thanks, fuzzie --- engines/director/director.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/engines/director/director.cpp b/engines/director/director.cpp index ea21986dcc..4df959d05d 100644 --- a/engines/director/director.cpp +++ b/engines/director/director.cpp @@ -79,10 +79,14 @@ void DirectorEngine::loadEXE() { } void DirectorEngine::loadEXEv3(Common::SeekableReadStream *stream) { - stream->readUint32LE(); // unknown - stream->readUint16LE(); // unknown + uint16 entryCount = stream->readUint16LE(); + + if (entryCount != 1) + error("Unhandled multiple entry v3 EXE"); + + stream->skip(5); // unknown + stream->readUint32LE(); // Main MMM size - stream->readByte(); // zero Common::String mmmFileName = readPascalString(*stream); Common::String directoryName = readPascalString(*stream); -- cgit v1.2.3