aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/director/lingo/lingo.cpp4
-rw-r--r--engines/director/lingo/lingo.h5
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,