[Scummvm-cvs-logs] CVS: scummvm/scumm scumm.cpp,1.461,1.462 debugger.cpp,1.146,1.147

Max Horn fingolfin at users.sourceforge.net
Sun Apr 24 05:22:20 CEST 2005


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30399/scumm

Modified Files:
	scumm.cpp debugger.cpp 
Log Message:
Changed the semantics of debug level 0 from off back to something more similiar to how it used to be (default debug level now is -1)

Index: scumm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scumm.cpp,v
retrieving revision 1.461
retrieving revision 1.462
diff -u -d -r1.461 -r1.462
--- scumm.cpp	24 Apr 2005 10:26:30 -0000	1.461
+++ scumm.cpp	24 Apr 2005 12:21:52 -0000	1.462
@@ -1058,7 +1058,7 @@
 	g_scumm = this;
 
 	// Read settings from the detector & config manager
-	_debugMode = (gDebugLevel > 0);
+	_debugMode = (gDebugLevel >= 0);
 	_dumpScripts = detector->_dumpScripts;
 	_bootParam = ConfMan.getInt("boot_param");
 

Index: debugger.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/debugger.cpp,v
retrieving revision 1.146
retrieving revision 1.147
diff -u -d -r1.146 -r1.147
--- debugger.cpp	23 Apr 2005 13:52:27 -0000	1.146
+++ debugger.cpp	24 Apr 2005 12:21:52 -0000	1.147
@@ -596,10 +596,10 @@
 			DebugPrintf("Debugging is currently set at level %d\n", gDebugLevel);
 	} else { // set level
 		gDebugLevel = atoi(argv[1]);
-		if (gDebugLevel > 0) {
+		if (gDebugLevel >= 0) {
 			_vm->_debugMode = true;
 			DebugPrintf("Debug level set to level %d\n", gDebugLevel);
-		} else if (gDebugLevel == 0) {
+		} else if (gDebugLevel < 0) {
 			_vm->_debugMode = false;
 			DebugPrintf("Debugging is now disabled\n");
 		} else





More information about the Scummvm-git-logs mailing list