aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2006-04-02 09:31:06 +0000
committerMax Horn2006-04-02 09:31:06 +0000
commit32de3441111f67d6330526a2d825775e0af19591 (patch)
tree1beef58e2c6e2adc645c35b3812ecd74e4f0b6d5
parent2fd027846e8bc7bba4029d9c8d774a4cbab6218f (diff)
downloadscummvm-rg350-32de3441111f67d6330526a2d825775e0af19591.tar.gz
scummvm-rg350-32de3441111f67d6330526a2d825775e0af19591.tar.bz2
scummvm-rg350-32de3441111f67d6330526a2d825775e0af19591.zip
Move gDebugLevel to common/util.cpp (where most other debug() related stuff already is)
svn-id: r21551
-rw-r--r--base/main.cpp8
-rw-r--r--common/util.cpp12
2 files changed, 12 insertions, 8 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 38fca03864..2a6e34b5ec 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -143,14 +143,6 @@ const char *gScummVMFeatures = ""
#endif
;
-/**
- * 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.
// Thus for now we need to setup a dummy palette. On the long run, we might
diff --git a/common/util.cpp b/common/util.cpp
index 0945161c1b..9649d35ef4 100644
--- a/common/util.cpp
+++ b/common/util.cpp
@@ -341,6 +341,18 @@ const Array<EngineDebugLevel> &listSpecialDebugLevels() {
} // End of namespace Common
+
+
+/**
+ * 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 debugHelper(char *buf, bool caret = true) {
#ifndef _WIN32_WCE
if (caret)