diff options
author | Eugene Sandulenko | 2016-08-19 19:04:07 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-19 19:04:07 +0200 |
commit | 97be9aa6dc204843f4a896f7e12f6cabc4322b44 (patch) | |
tree | 31cd1cf2b42d830869ac00642137e6e985d9c843 /engines/director/lingo/lingo.cpp | |
parent | 7896f2b6c2a93bd2c8d888b5a57432b818f3b873 (diff) | |
download | scummvm-rg350-97be9aa6dc204843f4a896f7e12f6cabc4322b44.tar.gz scummvm-rg350-97be9aa6dc204843f4a896f7e12f6cabc4322b44.tar.bz2 scummvm-rg350-97be9aa6dc204843f4a896f7e12f6cabc4322b44.zip |
DIRECTOR: Lingo: Improved debug output
Diffstat (limited to 'engines/director/lingo/lingo.cpp')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index 06e4e53886..d37da42670 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -121,17 +121,17 @@ const char *Lingo::findNextDefinition(const char *s) { return NULL; if (!strncmp(res, "macro ", 6)) { - warning("See macro"); + debugC(3, kDebugLingoCompile, "See macro"); return res; } if (!strncmp(res, "factory ", 8)) { - warning("See factory"); + debugC(3, kDebugLingoCompile, "See factory"); return res; } if (!strncmp(res, "method ", 7)) { - warning("See method"); + debugC(3, kDebugLingoCompile, "See method"); return res; } @@ -241,7 +241,7 @@ void Lingo::processEvent(LEvent event, int entityId) { if (!_eventHandlerTypes.contains(event)) error("processEvent: Unknown event %d for entity %d", event, entityId); - debug(2, "processEvent(%s) for %d", _eventHandlerTypes[event], entityId); + debug(2, "STUB: processEvent(%s) for %d", _eventHandlerTypes[event], entityId); } int Lingo::alignTypes(Datum &d1, Datum &d2) { @@ -412,7 +412,7 @@ void Lingo::runTests() { stream->read(script, size); - warning("Compiling file %s of size %d, id: %d", fileList[i].c_str(), size, counter); + debugC(2, kDebugLingoCompile, "Compiling file %s of size %d, id: %d", fileList[i].c_str(), size, counter); _hadError = false; addCode(script, kMovieScript, counter); @@ -420,7 +420,7 @@ void Lingo::runTests() { if (!_hadError) executeScript(kMovieScript, counter); else - warning("Skipping execution"); + debugC(2, kDebugLingoCompile, "Skipping execution"); free(script); |