[Scummvm-cvs-logs] CVS: scummvm/scumm debugger.cpp,1.136,1.137
Max Horn
fingolfin at users.sourceforge.net
Mon Dec 27 13:55:01 CET 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/dists/msvc8 saga.vcproj,1.2,1.3 scumm.vcproj,1.4,1.5 scummvm.vcproj,1.11,1.12 simon.vcproj,1.1,1.2 sky.vcproj,1.1,1.2 sword1.vcproj,1.1,1.2
- Next message: [Scummvm-cvs-logs] CVS: scummvm/base engine.cpp,1.30,1.31 gameDetector.cpp,1.94,1.95 gameDetector.h,1.29,1.30 main.cpp,1.64,1.65
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8383/scumm
Modified Files:
debugger.cpp
Log Message:
Fix for bug #1091748 (DIG: Starting new games takes a long time); turns out querying the debuglevel from the config-manager very often is too slow
Index: debugger.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/debugger.cpp,v
retrieving revision 1.136
retrieving revision 1.137
diff -u -d -r1.136 -r1.137
--- debugger.cpp 25 Dec 2004 19:04:18 -0000 1.136
+++ debugger.cpp 27 Dec 2004 21:54:19 -0000 1.137
@@ -44,7 +44,7 @@
// FIXME: Still spew all debug at -d9, for crashes in startup etc.
// Add setting from commandline ( / abstract channel interface)
- if (!(g_scumm->_debugFlags & channel) && (ConfMan.getInt("debuglevel") < 9))
+ if (!(g_scumm->_debugFlags & channel) && (gDebugLevel < 9))
return;
va_start(va, s);
@@ -596,6 +596,7 @@
} else { // set level
int level = atoi(argv[1]);
ConfMan.set("debuglevel", level, Common::ConfigManager::kTransientDomain);
+ gDebugLevel = ConfMan.getInt("debuglevel");
if (level > 0) {
_vm->_debugMode = true;
DebugPrintf("Debug level set to level %d\n", level);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/dists/msvc8 saga.vcproj,1.2,1.3 scumm.vcproj,1.4,1.5 scummvm.vcproj,1.11,1.12 simon.vcproj,1.1,1.2 sky.vcproj,1.1,1.2 sword1.vcproj,1.1,1.2
- Next message: [Scummvm-cvs-logs] CVS: scummvm/base engine.cpp,1.30,1.31 gameDetector.cpp,1.94,1.95 gameDetector.h,1.29,1.30 main.cpp,1.64,1.65
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list