aboutsummaryrefslogtreecommitdiff
path: root/scumm/string.cpp
diff options
context:
space:
mode:
authorJames Brown2002-12-28 12:22:39 +0000
committerJames Brown2002-12-28 12:22:39 +0000
commit1da5a28a510230091b5e7502929844bb35467f48 (patch)
treee14b7c3fa496be850326a2d63fb440e0a47ede80 /scumm/string.cpp
parent902b1c6cf142005e42f933558df3f957425d1ea2 (diff)
downloadscummvm-rg350-1da5a28a510230091b5e7502929844bb35467f48.tar.gz
scummvm-rg350-1da5a28a510230091b5e7502929844bb35467f48.tar.bz2
scummvm-rg350-1da5a28a510230091b5e7502929844bb35467f48.zip
Enable o8_printDebug() to the console
svn-id: r6225
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r--scumm/string.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 75b31e8ffd..7d238859c7 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -34,6 +34,11 @@ void Scumm::unkMessage1()
_msgPtrToAdd = buffer;
_messagePtr = addMessageToStack(_messagePtr);
+ if ((_gameId == GID_CMI) && _debugMode) { // In CMI, unkMessage1 is used for printDebug output
+ warning("%s", buffer);
+ return;
+ }
+
if (buffer[0] == 0xFF && buffer[1] == 10) {
uint32 a, b;
@@ -46,7 +51,7 @@ void Scumm::unkMessage1()
// mentioned in the patch. FIXME after iMUSE is done.
if (_gameId != GID_SAMNMAX || (_vars[VAR_V6_SOUNDMODE] != 2))
_sound->talkSound(a, b, 1, -1);
- }
+ }
}
void Scumm::unkMessage2()