diff options
author | Eugene Sandulenko | 2017-01-11 19:40:37 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-11 19:40:37 +0100 |
commit | a1500016ff26b59619fe90bf20c37a4ad582a07f (patch) | |
tree | 11627d879b40c9f8475e40de093ab9b07980d997 /engines/director | |
parent | 74f008e14e52086e5081633abe3844ec8bb872a1 (diff) | |
download | scummvm-rg350-a1500016ff26b59619fe90bf20c37a4ad582a07f.tar.gz scummvm-rg350-a1500016ff26b59619fe90bf20c37a4ad582a07f.tar.bz2 scummvm-rg350-a1500016ff26b59619fe90bf20c37a4ad582a07f.zip |
DIRECTOR: Process Cast scripts when dumping
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/score.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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); |