aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/console.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2016-08-02 19:43:15 +0200
committerEugene Sandulenko2017-07-03 08:50:10 +0200
commitf944b629881765626cedf37702f712bd30c8bdd3 (patch)
tree5e2057f9f4c4e9bfa77d1cf4a75e68f5158b9c5b /engines/mohawk/console.cpp
parent9b9fa7e0a5f92c1b3b3a1252af5ed82a5911505d (diff)
downloadscummvm-rg350-f944b629881765626cedf37702f712bd30c8bdd3.tar.gz
scummvm-rg350-f944b629881765626cedf37702f712bd30c8bdd3.tar.bz2
scummvm-rg350-f944b629881765626cedf37702f712bd30c8bdd3.zip
MOHAWK: Change Riven's scripts not to have a type
Diffstat (limited to 'engines/mohawk/console.cpp')
-rw-r--r--engines/mohawk/console.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/mohawk/console.cpp b/engines/mohawk/console.cpp
index 82173c2670..4d30008b4f 100644
--- a/engines/mohawk/console.cpp
+++ b/engines/mohawk/console.cpp
@@ -619,7 +619,8 @@ bool RivenConsole::Cmd_DumpScript(int argc, const char **argv) {
cardStream->seek(4);
RivenScriptList scriptList = _vm->_scriptMan->readScripts(cardStream);
for (uint32 i = 0; i < scriptList.size(); i++) {
- scriptList[i]->dumpScript(varNames, xNames, 0);
+ debugN("Stream Type %d:\n", scriptList[i].type);
+ scriptList[i].script->dumpScript(varNames, xNames, 0);
}
delete cardStream;
} else if (!scumm_stricmp(argv[2], "HSPT")) {
@@ -636,7 +637,8 @@ bool RivenConsole::Cmd_DumpScript(int argc, const char **argv) {
hsptStream->seek(22, SEEK_CUR); // Skip non-script related stuff
RivenScriptList scriptList = _vm->_scriptMan->readScripts(hsptStream);
for (uint32 j = 0; j < scriptList.size(); j++) {
- scriptList[j]->dumpScript(varNames, xNames, 1);
+ debugN("\tStream Type %d:\n", scriptList[i].type);
+ scriptList[j].script->dumpScript(varNames, xNames, 1);
}
}