diff options
author | Strangerke | 2011-07-18 18:05:57 +0200 |
---|---|---|
committer | Strangerke | 2011-07-18 18:05:57 +0200 |
commit | 8aa4f739af014303cc6a0fb90f13c22a1f77d33f (patch) | |
tree | 3d19b17129f546f18030ca3a1f7f81d91dc0f228 /engines/cge/cge.cpp | |
parent | e1df646ace3f0b487ef810a5489c3f0c2090da71 (diff) | |
download | scummvm-rg350-8aa4f739af014303cc6a0fb90f13c22a1f77d33f.tar.gz scummvm-rg350-8aa4f739af014303cc6a0fb90f13c22a1f77d33f.tar.bz2 scummvm-rg350-8aa4f739af014303cc6a0fb90f13c22a1f77d33f.zip |
CGE: Add debug channels (WIP)
Diffstat (limited to 'engines/cge/cge.cpp')
-rw-r--r-- | engines/cge/cge.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/cge/cge.cpp b/engines/cge/cge.cpp index 97712591fa..7e8c8377a8 100644 --- a/engines/cge/cge.cpp +++ b/engines/cge/cge.cpp @@ -45,6 +45,9 @@ CGEEngine::CGEEngine(OSystem *syst, const ADGameDescription *gameDescription) // Debug/console setup DebugMan.addDebugChannel(kCGEDebug, "general", "CGE general debug channel"); + DebugMan.addDebugChannel(kDebugBitmap, "bitmap", "CGE Bitmap debug channel"); + DebugMan.addDebugChannel(kDebugFile, "file", "CGE IO debug channel"); + DebugMan.addDebugChannel(kDebugEngine, "engine", "CGE Engine debug channel"); _isDemo = _gameDescription->flags & ADGF_DEMO; _startupMode = 1; @@ -56,6 +59,8 @@ CGEEngine::CGEEngine(OSystem *syst, const ADGameDescription *gameDescription) } void CGEEngine::setup() { + debugC(1, kDebugEngine, "CGEEngine::setup()"); + // Initialise fields _lastFrame = 0; _lastTick = 0; @@ -131,7 +136,7 @@ void CGEEngine::setup() { } CGEEngine::~CGEEngine() { - debug("CGEEngine::~CGEEngine"); + debugC(1, kDebugEngine, "CGEEngine::~CGEEngine()"); // Call classes with static members to clear them up Talk::deinit(); @@ -169,12 +174,13 @@ CGEEngine::~CGEEngine() { } Common::Error CGEEngine::run() { + debugC(1, kDebugEngine, "CGEEngine::run()"); + // Initialize graphics using following: initGraphics(320, 200, false); // Setup necessary game objects setup(); - // Run the game cge_main(); |