From 4fbcc337af97560fdd648a28a6e4e7586f419684 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 1 Dec 2019 14:45:03 +0100 Subject: DIRECTOR: LINGO: Improve debug output --- engines/director/lingo/lingo.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index d009893747..805bcb5f38 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -174,17 +174,19 @@ void Lingo::addCode(const char *code, ScriptType type, uint16 id) { parse(chunk.c_str()); if (debugChannelSet(3, kDebugLingoCompile)) { + debugC(2, kDebugLingoCompile, ""); uint pc = 0; while (pc < _currentScript->size()) { Common::String instr = decodeInstruction(_currentScript, pc, &pc); debugC(2, kDebugLingoCompile, "[%5d] %s", pc, instr.c_str()); } + debugC(2, kDebugLingoCompile, ""); } begin = end; } while ((end = findNextDefinition(begin + 1))); - debugC(1, kDebugLingoCompile, "Code chunk:\n#####\n%s\n#####", begin); + debugC(1, kDebugLingoCompile, "Last code chunk:\n#####\n%s\n#####", begin); parse(begin); code1(STOP); @@ -200,11 +202,13 @@ void Lingo::addCode(const char *code, ScriptType type, uint16 id) { if (_currentScript->size() && !_hadError) Common::hexdump((byte *)&_currentScript->front(), _currentScript->size() * sizeof(inst)); + debugC(2, kDebugLingoCompile, ""); uint pc = 0; while (pc < _currentScript->size()) { Common::String instr = decodeInstruction(_currentScript, pc, &pc); debugC(2, kDebugLingoCompile, "[%5d] %s", pc, instr.c_str()); } + debugC(2, kDebugLingoCompile, ""); } } -- cgit v1.2.3