[Scummvm-cvs-logs] CVS: scummvm/base main.cpp,1.76,1.77 gameDetector.cpp,1.113,1.114

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


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

Modified Files:
	main.cpp gameDetector.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: main.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/main.cpp,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -d -r1.76 -r1.77
--- main.cpp	23 Apr 2005 13:52:26 -0000	1.76
+++ main.cpp	24 Apr 2005 12:21:52 -0000	1.77
@@ -185,8 +185,13 @@
 
 #endif
 
-
-int gDebugLevel = 0;
+/**
+ * The debug level. Initially set to -1, indicating that no debug output
+ * should be shown. Positive values usually imply an increasing number of
+ * debug output shall be generated, the higher the value, the more verbose the
+ * information (although the exact semantics are up to the engines).
+ */
+int gDebugLevel = -1;
 
 static void setupDummyPalette(OSystem &system) {
 	// FIXME - mouse cursors are currently always set via 8 bit data.

Index: gameDetector.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/gameDetector.cpp,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -d -r1.113 -r1.114
--- gameDetector.cpp	23 Apr 2005 14:39:15 -0000	1.113
+++ gameDetector.cpp	24 Apr 2005 12:21:52 -0000	1.114
@@ -47,8 +47,6 @@
 #endif
 #endif
 
-extern int gDebugLevel;
-
 // DONT FIXME: DO NOT ORDER ALPHABETICALLY, THIS IS ORDERED BY IMPORTANCE/CATEGORY! :)
 #ifdef __PALM_OS__
 static const char USAGE_STRING[] = "NoUsageString"; // save more data segment space
@@ -378,7 +376,7 @@
 			END_OPTION
 			
 			DO_OPTION_OPT('d', "debuglevel")
-				gDebugLevel = option ? (int)strtol(option, 0, 10) : 1;
+				gDebugLevel = option ? (int)strtol(option, 0, 10) : 0;
 				printf("Debuglevel (from command line): %d\n", gDebugLevel);
 			END_OPTION
 			





More information about the Scummvm-git-logs mailing list