[Scummvm-cvs-logs] CVS: scummvm/base gameDetector.cpp,1.26,1.27

Jonathan Gray khalek at users.sourceforge.net
Mon Oct 13 23:04:02 CEST 2003


Update of /cvsroot/scummvm/scummvm/base
In directory sc8-pr-cvs1:/tmp/cvs-serv28344

Modified Files:
	gameDetector.cpp 
Log Message:
zero is a valid debug level, also change incorrect string; 0 is game only, not engine only. Maybe the game and engine debug levels should be seperated? This only applies to SCUMM as no other engine maintains its own debug level as far as I know.

Index: gameDetector.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/gameDetector.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- gameDetector.cpp	13 Oct 2003 18:03:13 -0000	1.26
+++ gameDetector.cpp	14 Oct 2003 06:02:38 -0000	1.27
@@ -221,7 +221,7 @@
 	ConfMan.registerDefault("joystick_num", -1);
 	ConfMan.registerDefault("confirm_exit", false);
 
-	_debugMode = (ConfMan.getInt("debuglevel") > 0);
+	_debugMode = (ConfMan.getInt("debuglevel") >= 0);
 	_dumpScripts = false;
 	_midi_driver = MD_AUTO;
 
@@ -318,7 +318,7 @@
 				if (ConfMan.getInt("debuglevel")) {
 					printf("Debuglevel (from command line): %d\n", ConfMan.getInt("debuglevel"));
 				} else {
-					printf("Debuglevel (from command line): 0 - Engine only\n");
+					printf("Debuglevel (from command line): 0 - Game only\n");
 				}
 				break;
 			case 'e':
@@ -478,7 +478,7 @@
 void GameDetector::setTarget(const String &name) {
 	_targetName = name;
 	ConfMan.setActiveDomain(name);
-	_debugMode = (ConfMan.getInt("debuglevel") > 0);
+	_debugMode = (ConfMan.getInt("debuglevel") >= 0);
 }
 
 int GameDetector::parseGraphicsMode(const String &str) {





More information about the Scummvm-git-logs mailing list