diff options
author | Eugene Sandulenko | 2019-12-28 23:46:50 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-12-29 00:51:16 +0100 |
commit | ecaebf7cedba882185c1b87f12a01bc84d91f879 (patch) | |
tree | 497f526eab2634b4464c63f831427c5ecff3fdd9 /engines/director/lingo/lingo.cpp | |
parent | 6ab1d6ac7b0a60294f9a41953ccbf956280526cb (diff) | |
download | scummvm-rg350-ecaebf7cedba882185c1b87f12a01bc84d91f879.tar.gz scummvm-rg350-ecaebf7cedba882185c1b87f12a01bc84d91f879.tar.bz2 scummvm-rg350-ecaebf7cedba882185c1b87f12a01bc84d91f879.zip |
DIRECTOR: LINGO: Print variable lists as an extra debug step
Diffstat (limited to 'engines/director/lingo/lingo.cpp')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index 0956adeaa8..9c94bc6a96 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -487,4 +487,18 @@ void Lingo::executeImmediateScripts(Frame *frame) { } } +void Lingo::printAllVars() { + debugN(" Local vars: "); + for (SymbolHash::iterator i = _localvars->begin(); i != _localvars->end(); ++i) { + debugN("%s, ", (*i)._key.c_str()); + } + debug(""); + + debugN(" Global vars: "); + for (SymbolHash::iterator i = _globalvars.begin(); i != _globalvars.end(); ++i) { + debugN("%s, ", (*i)._key.c_str()); + } + debug(""); +} + } // End of namespace Director |