aboutsummaryrefslogtreecommitdiff
path: root/scumm/script.cpp
diff options
context:
space:
mode:
authorJames Brown2004-01-10 05:20:15 +0000
committerJames Brown2004-01-10 05:20:15 +0000
commit1778b01d765b8290c47324d6befebb9130353973 (patch)
tree0dfb0c136410c075a4f86a8f51db5c6a9a14499c /scumm/script.cpp
parentab7db8fb045d36dfcd1d5eb709c0ccc64298512d (diff)
downloadscummvm-rg350-1778b01d765b8290c47324d6befebb9130353973.tar.gz
scummvm-rg350-1778b01d765b8290c47324d6befebb9130353973.tar.bz2
scummvm-rg350-1778b01d765b8290c47324d6befebb9130353973.zip
Start of debug channel support. TODO: Move this to the common Debugger system?
svn-id: r12289
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r--scumm/script.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index 70bafab194..39becf1af1 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -50,11 +50,17 @@ void ScummEngine::runScript(int script, bool freezeResistant, bool recursive, in
scriptPtr = getResourceAddress(rtScript, script);
scriptOffs = _resourceHeaderSize;
scriptType = WIO_GLOBAL;
+
+ debugC(DEBUG_SCRIPTS, "runScript(Global-%d) from %d-%d", script,
+ vm.slot[_currentScript].number, _roomResource);
} else {
scriptOffs = _localScriptList[script - _numGlobalScripts];
if (scriptOffs == 0)
error("Local script %d is not in room %d", script, _roomResource);
scriptType = WIO_LOCAL;
+
+ debugC(DEBUG_SCRIPTS, "runScript(%d) from %d-%d", script,
+ vm.slot[_currentScript].number, _roomResource);
}
slot = getScriptSlot();