Skip to content

Commit

Permalink
DIRECTOR: Put parsing lingo debug ouptu to separate debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Feb 21, 2017
1 parent 3873730 commit 534157f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions engines/director/director.cpp
Expand Up @@ -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");
Expand Down
3 changes: 2 additions & 1 deletion engines/director/director.h
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion engines/director/lingo/lingo-lex.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion engines/director/lingo/lingo-lex.l
Expand Up @@ -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;
Expand Down

0 comments on commit 534157f

Please sign in to comment.