diff options
author | Eugene Sandulenko | 2017-02-21 09:22:58 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-02-21 09:22:58 +0100 |
commit | 534157f8e0b4b249423a673d610f800f2adcdf20 (patch) | |
tree | 33a5ec9c984ebaf6948538759ea0dcfd02d3c5c9 /engines | |
parent | 3873730ecf9953150262927318f6e829a6bbd48e (diff) | |
download | scummvm-rg350-534157f8e0b4b249423a673d610f800f2adcdf20.tar.gz scummvm-rg350-534157f8e0b4b249423a673d610f800f2adcdf20.tar.bz2 scummvm-rg350-534157f8e0b4b249423a673d610f800f2adcdf20.zip |
DIRECTOR: Put parsing lingo debug ouptu to separate debug flag
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/director.cpp | 1 | ||||
-rw-r--r-- | engines/director/director.h | 3 | ||||
-rw-r--r-- | engines/director/lingo/lingo-lex.cpp | 2 | ||||
-rw-r--r-- | engines/director/lingo/lingo-lex.l | 2 |
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; |