aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/director/director.cpp1
-rw-r--r--engines/director/director.h3
-rw-r--r--engines/director/lingo/lingo-lex.cpp2
-rw-r--r--engines/director/lingo/lingo-lex.l2
4 files changed, 5 insertions, 3 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp
index 05775791f6..bfe9a724be 100644
--- a/engines/director/director.cpp
+++ b/engines/director/director.cpp
@@ -42,6 +42,7 @@ DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gam
_rnd("director") {
DebugMan.addDebugChannel(kDebugLingoExec, "lingoexec", "Lingo Execution");
DebugMan.addDebugChannel(kDebugLingoCompile, "lingocompile", "Lingo Compilation");
+ DebugMan.addDebugChannel(kDebugLingoParse, "lingoparse", "Lingo code parsing");
DebugMan.addDebugChannel(kDebugLoading, "loading", "Loading");
DebugMan.addDebugChannel(kDebugImages, "images", "Image drawing");
DebugMan.addDebugChannel(kDebugText, "text", "Text rendering");
diff --git a/engines/director/director.h b/engines/director/director.h
index 805a51c610..fdbe8ded48 100644
--- a/engines/director/director.h
+++ b/engines/director/director.h
@@ -58,7 +58,8 @@ enum {
kDebugLoading = 1 << 2,
kDebugImages = 1 << 3,
kDebugText = 1 << 4,
- kDebugEvents = 1 << 5
+ kDebugEvents = 1 << 5,
+ kDebugLingoParse = 1 << 6
};
extern byte defaultPalette[768];
diff --git a/engines/director/lingo/lingo-lex.cpp b/engines/director/lingo/lingo-lex.cpp
index c9a7be7ae5..48a5166b95 100644
--- a/engines/director/lingo/lingo-lex.cpp
+++ b/engines/director/lingo/lingo-lex.cpp
@@ -2549,7 +2549,7 @@ namespace Director {
int Lingo::parse(const char *code) {
YY_BUFFER_STATE bp;
- if (debugChannelSet(-1, kDebugLingoCompile))
+ if (debugChannelSet(-1, kDebugLingoParse))
yydebug = 1;
else
yydebug = 0;
diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l
index a53a2f04de..37bad1247d 100644
--- a/engines/director/lingo/lingo-lex.l
+++ b/engines/director/lingo/lingo-lex.l
@@ -325,7 +325,7 @@ namespace Director {
int Lingo::parse(const char *code) {
YY_BUFFER_STATE bp;
- if (debugChannelSet(-1, kDebugLingoCompile))
+ if (debugChannelSet(-1, kDebugLingoParse))
yydebug = 1;
else
yydebug = 0;