aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2005-04-24 12:21:53 +0000
committerMax Horn2005-04-24 12:21:53 +0000
commitce3cd9b194633e97eabf693f66498335f1f7557d (patch)
treeaaeeefb3556c31e71fc98feaaeaea69541bb9766 /base
parent5553ef53f191ae190fcd6c35c430e61d665bae44 (diff)
downloadscummvm-rg350-ce3cd9b194633e97eabf693f66498335f1f7557d.tar.gz
scummvm-rg350-ce3cd9b194633e97eabf693f66498335f1f7557d.tar.bz2
scummvm-rg350-ce3cd9b194633e97eabf693f66498335f1f7557d.zip
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)
svn-id: r17788
Diffstat (limited to 'base')
-rw-r--r--base/gameDetector.cpp4
-rw-r--r--base/main.cpp9
2 files changed, 8 insertions, 5 deletions
diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp
index 917f7b0ff3..a3b1fcdc32 100644
--- a/base/gameDetector.cpp
+++ b/base/gameDetector.cpp
@@ -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 @@ void GameDetector::parseCommandLine(int argc, char **argv) {
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
diff --git a/base/main.cpp b/base/main.cpp
index d8afe0ddf7..70ce2726bc 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -185,8 +185,13 @@ static void do_memory_test(void) {
#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.