Added two more debug levels (logic and animation).

svn-id: r42065
This commit is contained in:
Denis Kasak 2009-07-03 16:35:04 +00:00
parent b232202b33
commit 52642e2dc9
2 changed files with 8 additions and 4 deletions

View File

@ -62,9 +62,11 @@ DraciEngine::DraciEngine(OSystem *syst, const ADGameDescription *gameDesc)
//Common::File::addDefaultDirectory(_gameDataPath + "sound/");
// Here is the right place to set up the engine specific debug levels
Common::addDebugChannel(kDraciGeneralDebugLevel, "general", "Draci general debug level");
Common::addDebugChannel(kDraciGeneralDebugLevel, "general", "Draci general debug info");
Common::addDebugChannel(kDraciBytecodeDebugLevel, "bytecode", "GPL bytecode instructions");
Common::addDebugChannel(kDraciArchiverDebugLevel, "archiver", "BAR archiver debug info");
Common::addDebugChannel(kDraciLogicDebugLevel, "logic", "Game logic debug info");
Common::addDebugChannel(kDraciAnimationDebugLevel, "animation", "Animation debug info");
// Don't forget to register your random source
_eventMan->registerRandomSource(_rnd, "draci");

View File

@ -67,9 +67,11 @@ private:
};
enum {
kDraciGeneralDebugLevel = 1 << 0,
kDraciBytecodeDebugLevel = 1 << 1,
kDraciArchiverDebugLevel = 1 << 2
kDraciGeneralDebugLevel = 1 << 0,
kDraciBytecodeDebugLevel = 1 << 1,
kDraciArchiverDebugLevel = 1 << 2,
kDraciLogicDebugLevel = 1 << 3,
kDraciAnimationDebugLevel = 1 << 4
};
} // End of namespace Draci