From a1500016ff26b59619fe90bf20c37a4ad582a07f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 11 Jan 2017 19:40:37 +0100 Subject: DIRECTOR: Process Cast scripts when dumping --- engines/director/score.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'engines/director') diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 3fab9cf011..2b7465010b 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -510,14 +510,14 @@ void Score::loadCastData(Common::SeekableSubReadStreamEndian &stream, uint16 id, debugC(4, kDebugLoading, "'"); CastInfo *ci = new CastInfo(); - + if (castStrings.size() == 5) { ci->script = castStrings[0]; ci->name = castStrings[1]; ci->directory = castStrings[2]; ci->fileName = castStrings[3]; ci->type = castStrings[4]; - + if (!ci->script.empty()) { //the script type here could be wrong! _lingo->addCode(ci->script.c_str(), kCastScript, id); @@ -674,6 +674,9 @@ void Score::dumpScript(const char *script, ScriptType type, uint16 id) { case kSpriteScript: typeName = "sprite"; break; + case kCastScript: + typeName = "cast"; + break; } sprintf(buf, "./dumps/%s-%s-%d.txt", _macName.c_str(), typeName.c_str(), id); -- cgit v1.2.3