[Scummvm-cvs-logs] CVS: scummvm/common gameDetector.cpp,1.52,1.53
Travis Howell
kirben at users.sourceforge.net
Fri Dec 20 16:51:03 CET 2002
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv3353/common
Modified Files:
gameDetector.cpp
Log Message:
Add debug command line fix and config option, patch #655822
Index: gameDetector.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/gameDetector.cpp,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- gameDetector.cpp 17 Dec 2002 14:05:43 -0000 1.52
+++ gameDetector.cpp 21 Dec 2002 00:27:10 -0000 1.53
@@ -200,7 +200,7 @@
_amiga = false;
_talkSpeed = 60;
- _debugLevel = 1;
+ _debugLevel = 0;
_debugMode = 0;
_noSubtitles = false;
_bootParam = 0;
@@ -278,11 +278,19 @@
_sfx_volume = g_config->getInt("sfx_volume", _sfx_volume);
+ _debugLevel = g_config->getInt("debuglevel", _debugLevel);
+ if (_debugLevel > 0) {
+ _debugMode = true;
+ debug(1, "Debuglevel (from config): %d", _debugLevel);
+ }
+
// We use strtol for the tempo to allow it to be specified in hex.
if ((val = g_config->get("tempo")))
_gameTempo = strtol(val, NULL, 0);
_talkSpeed = g_config->getInt("talkspeed", _talkSpeed);
+
+
}
void GameDetector::list_games()
@@ -350,7 +358,7 @@
HANDLE_OPT_OPTION();
if (option != NULL)
_debugLevel = atoi(option);
- debug(1,"Debugmode (level %d) on", _debugLevel);
+ debug(1,"Debuglevel (from command line): %d", _debugLevel);
break;
case 'e':
HANDLE_OPTION();
More information about the Scummvm-git-logs
mailing list