diff options
author | Eugene Sandulenko | 2016-08-19 09:39:56 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-19 09:55:22 +0200 |
commit | 1abbe6bcf0b203725ae5c519a9a4502be89fa949 (patch) | |
tree | 8c6ae9f35f4f93360e20b3cb00328dd5cd9f7d26 | |
parent | 0ab903a9e2416f329439d094bc6b6864a3454e37 (diff) | |
download | scummvm-rg350-1abbe6bcf0b203725ae5c519a9a4502be89fa949.tar.gz scummvm-rg350-1abbe6bcf0b203725ae5c519a9a4502be89fa949.tar.bz2 scummvm-rg350-1abbe6bcf0b203725ae5c519a9a4502be89fa949.zip |
DIRECTOR: Lingo: Hide script hexdump under debug level
-rw-r--r-- | engines/director/lingo/lingo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index 0f4b539bc2..412b817892 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -198,8 +198,10 @@ void Lingo::addCode(const char *code, ScriptType type, uint16 id) { _inFactory = false; - if (_currentScript->size() && !_hadError) - Common::hexdump((byte *)&_currentScript->front(), _currentScript->size() * sizeof(inst)); + if (debugChannelSet(3, kDebugLingoCompile)) { + if (_currentScript->size() && !_hadError) + Common::hexdump((byte *)&_currentScript->front(), _currentScript->size() * sizeof(inst)); + } } void Lingo::executeScript(ScriptType type, uint16 id) { |