aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/mortevielle.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-07-28 11:41:49 +0300
committerEugene Sandulenko2016-07-28 11:41:49 +0300
commit1fc03406e3d1f83ee8ec89c52e0faf369b7c6c74 (patch)
tree9fa4f6b8f0e7ed6d544095b59bd76ff0d1f94167 /engines/mortevielle/mortevielle.cpp
parent12728cf4ddad2b8a9bd58293398f1af79730c8d9 (diff)
downloadscummvm-rg350-1fc03406e3d1f83ee8ec89c52e0faf369b7c6c74.tar.gz
scummvm-rg350-1fc03406e3d1f83ee8ec89c52e0faf369b7c6c74.tar.bz2
scummvm-rg350-1fc03406e3d1f83ee8ec89c52e0faf369b7c6c74.zip
MORTEVIELLE: Fix debug channel initialization
Diffstat (limited to 'engines/mortevielle/mortevielle.cpp')
-rw-r--r--engines/mortevielle/mortevielle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/mortevielle/mortevielle.cpp b/engines/mortevielle/mortevielle.cpp
index 81b2edb57d..4f0899deb4 100644
--- a/engines/mortevielle/mortevielle.cpp
+++ b/engines/mortevielle/mortevielle.cpp
@@ -48,6 +48,10 @@ MortevielleEngine *g_vm;
MortevielleEngine::MortevielleEngine(OSystem *system, const MortevielleGameDescription *gameDesc):
Engine(system), _gameDescription(gameDesc), _randomSource("mortevielle") {
+ // Set debug channels
+ DebugMan.addDebugChannel(kMortevielleCore, "core", "Core debugging");
+ DebugMan.addDebugChannel(kMortevielleGraphics, "graphics", "Graphics debugging");
+
g_vm = this;
_debugger = new Debugger(this);
_dialogManager = new DialogManager(this);
@@ -244,10 +248,6 @@ Common::ErrorCode MortevielleEngine::initialize() {
// Initialize graphics mode
initGraphics(SCREEN_WIDTH, SCREEN_HEIGHT, true);
- // Set debug channels
- DebugMan.addDebugChannel(kMortevielleCore, "core", "Core debugging");
- DebugMan.addDebugChannel(kMortevielleGraphics, "graphics", "Graphics debugging");
-
// Set up an intermediate screen surface
_screenSurface->create(SCREEN_WIDTH, SCREEN_HEIGHT, Graphics::PixelFormat::createFormatCLUT8());