aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimei Yin2017-08-08 11:43:37 +0200
committerSimei Yin2017-08-08 14:08:29 +0200
commitc9e3747114a3fa583ea397ff1d76b88965e63f67 (patch)
tree3378eb095ed2bad0d8070c381bd6295d46fe3633
parentcd0052155275f8cdb667f0ddfa6c66aaac66d318 (diff)
downloadscummvm-rg350-c9e3747114a3fa583ea397ff1d76b88965e63f67.tar.gz
scummvm-rg350-c9e3747114a3fa583ea397ff1d76b88965e63f67.tar.bz2
scummvm-rg350-c9e3747114a3fa583ea397ff1d76b88965e63f67.zip
SLUDGE: Change debug channels
-rw-r--r--engines/sludge/builtin.cpp2
-rw-r--r--engines/sludge/sludge.cpp4
-rw-r--r--engines/sludge/sludger.cpp4
3 files changed, 6 insertions, 4 deletions
diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp
index d5d549fe78..ce66443268 100644
--- a/engines/sludge/builtin.cpp
+++ b/engines/sludge/builtin.cpp
@@ -2584,6 +2584,8 @@ BuiltReturn callBuiltIn(int whichFunc, int numParams, LoadedFunction *fun) {
}
if (builtInFunctionArray[whichFunc].func) {
+ debugC(1, kSludgeDebugBuiltin, "Run built-in function : %s",
+ (whichFunc < numBIFNames) ? allBIFNames[whichFunc].c_str() : "Unknown");
return builtInFunctionArray[whichFunc].func(numParams, fun);
}
}
diff --git a/engines/sludge/sludge.cpp b/engines/sludge/sludge.cpp
index 18d0e3a71e..aeb62538cd 100644
--- a/engines/sludge/sludge.cpp
+++ b/engines/sludge/sludge.cpp
@@ -54,8 +54,8 @@ SludgeEngine::SludgeEngine(OSystem *syst, const SludgeGameDescription *gameDesc)
DebugMan.addDebugChannel(kSludgeDebugGraphics, "Graphics", "Graphics debug level");
DebugMan.addDebugChannel(kSludgeDebugZBuffer, "ZBuffer", "ZBuffer debug level");
- DebugMan.enableDebugChannel("Graphics");
- DebugMan.enableDebugChannel("ZBuffer");
+ DebugMan.enableDebugChannel("Built-in");
+ DebugMan.enableDebugChannel("Stack Machine");
// init graphics
_origFormat = new Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0);
diff --git a/engines/sludge/sludger.cpp b/engines/sludge/sludger.cpp
index 930c26d96b..8f7bfb882b 100644
--- a/engines/sludge/sludger.cpp
+++ b/engines/sludge/sludger.cpp
@@ -412,7 +412,7 @@ bool continueFunction(LoadedFunction *fun) {
while (keepLooping) {
advanceNow = true;
- debugC(2, kSludgeDebugStackMachine, "Executing command line %i : ", fun->runThisLine);
+ debugC(1, kSludgeDebugStackMachine, "Executing command line %i : ", fun->runThisLine);
param = fun->compiledLines[fun->runThisLine].param;
com = fun->compiledLines[fun->runThisLine].theCommand;
// fprintf (stderr, "com: %d param: %d (%s)\n", com, param,
@@ -464,7 +464,7 @@ bool continueFunction(LoadedFunction *fun) {
break;
case SVT_BUILT: {
- debugC(2, kSludgeDebugStackMachine, "Built-in init value: %i",
+ debugC(1, kSludgeDebugStackMachine, "Built-in init value: %i",
fun->reg.varData.intValue);
BuiltReturn br = callBuiltIn(fun->reg.varData.intValue, param,
fun);