SLUDGE: Change debug channels
This commit is contained in:
parent
cd00521552
commit
c9e3747114
3 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue