DIRECTOR: Fix debug channels initialization

This commit is contained in:
Eugene Sandulenko 2016-08-15 19:34:21 +02:00
parent c92f1a665f
commit 21e82aef5f
2 changed files with 4 additions and 4 deletions

View File

@ -24,6 +24,7 @@
#include "common/config-manager.h"
#include "common/debug.h"
#include "common/debug-channels.h"
#include "common/scummsys.h"
#include "common/error.h"
#include "common/events.h"
@ -49,6 +50,9 @@ namespace Director {
DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc),
_rnd("director") {
DebugMan.addDebugChannel(kDebugLingoExec, "lingoexec", "Lingo Execution");
DebugMan.addDebugChannel(kDebugLingoCompile, "lingocompile", "Lingo Compilation");
if (!_mixer->isReady())
error("Sound initialization failed");

View File

@ -20,7 +20,6 @@
*
*/
#include "common/debug-channels.h"
#include "common/str-array.h"
#include "director/lingo/lingo.h"
@ -83,9 +82,6 @@ Symbol::Symbol() {
Lingo::Lingo(DirectorEngine *vm) : _vm(vm) {
g_lingo = this;
DebugMan.addDebugChannel(kDebugLingoExec, "lingoexec", "Lingo Execution");
DebugMan.addDebugChannel(kDebugLingoCompile, "lingocompile", "Lingo Compilation");
for (const EventHandlerType *t = &eventHanlerDescs[0]; t->handler != kEventNone; ++t)
_eventHandlerTypes[t->handler] = t->name;