diff options
author | Eugene Sandulenko | 2016-08-15 10:33:30 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-15 19:34:46 +0200 |
commit | 56e180b292e9dc39a92e16ca3a06aca544427469 (patch) | |
tree | d6970ecc3097ab77b0a31a67bb6b60fbbe1f1d28 /engines/director/lingo | |
parent | da99a44af5204e68b86e954ab0f90bbbc25c2f36 (diff) | |
download | scummvm-rg350-56e180b292e9dc39a92e16ca3a06aca544427469.tar.gz scummvm-rg350-56e180b292e9dc39a92e16ca3a06aca544427469.tar.bz2 scummvm-rg350-56e180b292e9dc39a92e16ca3a06aca544427469.zip |
DIRECTOR: Register debug channels
Diffstat (limited to 'engines/director/lingo')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 4 | ||||
-rw-r--r-- | engines/director/lingo/lingo.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index f3faf975fe..0ccf5a992b 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -20,6 +20,7 @@ * */ +#include "common/debug-channels.h" #include "common/str-array.h" #include "director/lingo/lingo.h" @@ -82,6 +83,9 @@ 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; diff --git a/engines/director/lingo/lingo.h b/engines/director/lingo/lingo.h index 8af20f2a15..33dd0255ac 100644 --- a/engines/director/lingo/lingo.h +++ b/engines/director/lingo/lingo.h @@ -35,6 +35,11 @@ namespace Director { +enum { + kDebugLingoExec = 1 << 0, + kDebugLingoCompile = 1 << 1 +}; + enum LEvent { kEventPrepareMovie, kEventStartMovie, |