diff options
author | James Brown | 2004-01-10 05:20:15 +0000 |
---|---|---|
committer | James Brown | 2004-01-10 05:20:15 +0000 |
commit | 1778b01d765b8290c47324d6befebb9130353973 (patch) | |
tree | 0dfb0c136410c075a4f86a8f51db5c6a9a14499c /scumm/script.cpp | |
parent | ab7db8fb045d36dfcd1d5eb709c0ccc64298512d (diff) | |
download | scummvm-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.cpp | 6 |
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(); |