From ff68862ecc404ce32c86831c902bdd6375a13116 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 10 Dec 2019 23:57:16 +0100 Subject: DIRECTOR: Escape Stxt debug output --- engines/director/stxt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/director/stxt.cpp') diff --git a/engines/director/stxt.cpp b/engines/director/stxt.cpp index 965dc49903..463e5f705c 100644 --- a/engines/director/stxt.cpp +++ b/engines/director/stxt.cpp @@ -40,7 +40,7 @@ Stxt::Stxt(Common::SeekableSubReadStreamEndian &textStream) { } debugC(3, kDebugText, "Stxt init: unk1: %d strLen: %d dataLen: %d textlen: %u", unk1, strLen, dataLen, text.size()); if (strLen < 200) - debugC(3, kDebugText, "text: '%s'", text.c_str()); + debugC(3, kDebugText, "text: '%s'", Common::toPrintable(text).c_str()); uint16 formattingCount = textStream.readUint16(); uint32 prevPos = 0; @@ -92,7 +92,7 @@ Stxt::Stxt(Common::SeekableSubReadStreamEndian &textStream) { formattingCount--; } - debugC(4, kDebugText, "%s", text.c_str()); + debugC(4, kDebugText, "#### text:\n%s\n####", Common::toPrintable(_ftext).c_str()); _ftext += text; } -- cgit v1.2.3