From 40290fb244af0017d7219faf21511ad4d5e60c4f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 28 Jul 2016 11:33:15 +0300 Subject: CINE: Move debug channel registration to the first place in the constructor Otherwise we could miss some of the debug output as the channels are not yet registered. --- engines/cine/cine.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/cine') diff --git a/engines/cine/cine.cpp b/engines/cine/cine.cpp index d2f088dcd8..414fe49eb6 100644 --- a/engines/cine/cine.cpp +++ b/engines/cine/cine.cpp @@ -49,13 +49,14 @@ CineEngine::CineEngine(OSystem *syst, const CINEGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc), _rnd("cine") { - // Setup mixer - syncSoundSettings(); - DebugMan.addDebugChannel(kCineDebugScript, "Script", "Script debug level"); DebugMan.addDebugChannel(kCineDebugPart, "Part", "Part debug level"); DebugMan.addDebugChannel(kCineDebugSound, "Sound", "Sound debug level"); DebugMan.addDebugChannel(kCineDebugCollision, "Collision", "Collision debug level"); + + // Setup mixer + syncSoundSettings(); + _console = new CineConsole(this); g_cine = this; -- cgit v1.2.3