[Scummvm-git-logs] scummvm master -> 1a583c6d7168a2fad35d750ff8ef35f3abc27fcc
bluegr
noreply at scummvm.org
Tue Nov 10 13:58:47 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
1a583c6d71 GOB: Log the text drawn by printTotText
Commit: 1a583c6d7168a2fad35d750ff8ef35f3abc27fcc
https://github.com/scummvm/scummvm/commit/1a583c6d7168a2fad35d750ff8ef35f3abc27fcc
Author: Michael Ostermann (Michael.Ostermann at its4bm.com)
Date: 2026-11-10T15:58:42+02:00
Commit Message:
GOB: Log the text drawn by printTotText
None of the debug channels shows the text items the gob games draw, so
checking a line means reading it off a screenshot. Collect the strings
printTotText actually draws (the same ones text-to-speech gets, plus
centered ones) and log them under the Graphics channel, converted from
the game's codepage to UTF-8:
--debugflags=Graphics --debuglevel=1
TotText 13: Ein Gaffer
TotText 22 (subtitle): Kommen Sie näher, um besser zu sehen, da haben Sie etwas...
Woodruff carries its dialogue as such items; with subtitles on, every
line appears in the log.
Changed paths:
engines/gob/draw_v2.cpp
diff --git a/engines/gob/draw_v2.cpp b/engines/gob/draw_v2.cpp
index 281d3a2a961..bbde19abae8 100644
--- a/engines/gob/draw_v2.cpp
+++ b/engines/gob/draw_v2.cpp
@@ -393,6 +393,7 @@ void Draw_v2::printTotText(int16 id) {
#ifdef USE_TTS
Common::String ttsMessage;
#endif
+ Common::String logText;
while (true) {
if ((((*ptr >= 1) && (*ptr <= 7)) || (*ptr == 10)) && (strPos != 0)) {
str[MAX(strPos, strPos2)] = 0;
@@ -421,6 +422,9 @@ void Draw_v2::printTotText(int16 id) {
printTextCentered(colCmd & 0x0F, rectLeft + 2, rectTop + 2,
rectRight - 2, rectBottom - 2, str, fontIndex, frontColor);
+ logText += str;
+ logText += ' ';
+
} else {
_destSpriteX = offX;
_destSpriteY = offY;
@@ -431,6 +435,8 @@ void Draw_v2::printTotText(int16 id) {
ttsMessage += _textToPrint;
ttsMessage += " ";
#endif
+ logText += _textToPrint;
+ logText += ' ';
if (isSubtitle) {
_fontIndex = _subtitleFont;
@@ -626,6 +632,11 @@ void Draw_v2::printTotText(int16 id) {
}
}
+ logText.trim();
+ if (!logText.empty() && DebugMan.isDebugChannelEnabled(kDebugGraphics))
+ debugC(1, kDebugGraphics, "TotText %d%s: %s", id, isSubtitle ? " (subtitle)" : "",
+ logText.decode(_vm->_ttsEncoding).encode(Common::kUtf8).c_str());
+
#ifdef USE_TTS
if (_previousTot != ttsMessage && !isSubtitle) {
if (_vm->_game->_hotspots->hoveringOverHotspot()) {
More information about the Scummvm-git-logs
mailing list