From 1fc03406e3d1f83ee8ec89c52e0faf369b7c6c74 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 28 Jul 2016 11:41:49 +0300 Subject: MORTEVIELLE: Fix debug channel initialization --- engines/mortevielle/mortevielle.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/mortevielle') 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()); -- cgit v1.2.3