[Scummvm-cvs-logs] CVS: scummvm/scumm string.cpp,1.71,1.72

James Brown ender at users.sourceforge.net
Sat Dec 28 04:23:02 CET 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv28695/scumm

Modified Files:
	string.cpp 
Log Message:
Enable o8_printDebug() to the console


Index: string.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/string.cpp,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- string.cpp	28 Dec 2002 01:57:19 -0000	1.71
+++ string.cpp	28 Dec 2002 12:22:39 -0000	1.72
@@ -34,6 +34,11 @@
 	_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 @@
 		// 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()





More information about the Scummvm-git-logs mailing list