aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2007-02-04 13:28:17 +0000
committerMax Horn2007-02-04 13:28:17 +0000
commit4e9e88ac1cc0cab27b311ad39bd3d7e7df990d2b (patch)
tree2745bd02798593c175a4c19fb0bee17d4e13666c /common
parent8ae2be31e07c3f783e016e5257ed12335e2285e8 (diff)
downloadscummvm-rg350-4e9e88ac1cc0cab27b311ad39bd3d7e7df990d2b.tar.gz
scummvm-rg350-4e9e88ac1cc0cab27b311ad39bd3d7e7df990d2b.tar.bz2
scummvm-rg350-4e9e88ac1cc0cab27b311ad39bd3d7e7df990d2b.zip
Added Common::getEnabledSpecialDebugLevels
svn-id: r25383
Diffstat (limited to 'common')
-rw-r--r--common/util.cpp9
-rw-r--r--common/util.h7
2 files changed, 14 insertions, 2 deletions
diff --git a/common/util.cpp b/common/util.cpp
index 2a4aacafe0..693285ff26 100644
--- a/common/util.cpp
+++ b/common/util.cpp
@@ -297,8 +297,8 @@ const char *getRenderModeDescription(RenderMode id) {
#pragma mark -
-Array<EngineDebugLevel> gDebugLevels;
-uint32 gDebugLevelsEnabled = 0;
+static Array<EngineDebugLevel> gDebugLevels;
+static uint32 gDebugLevelsEnabled = 0;
bool addSpecialDebugLevel(uint32 level, const String &option, const String &description) {
for (uint i = 0; i < gDebugLevels.size(); ++i) {
@@ -358,6 +358,11 @@ const Array<EngineDebugLevel> &listSpecialDebugLevels() {
return gDebugLevels;
}
+uint32 getEnabledSpecialDebugLevels() {
+ return gDebugLevelsEnabled;
+}
+
+
} // End of namespace Common
diff --git a/common/util.h b/common/util.h
index 9f5008f418..93b16a3c2e 100644
--- a/common/util.h
+++ b/common/util.h
@@ -262,6 +262,13 @@ bool disableSpecialDebugLevel(const String &option);
*/
const Array<EngineDebugLevel> &listSpecialDebugLevels();
+/**
+ * Return the active debug flag mask (i.e. all active debug flags ORed
+ * together into a single uint32).
+ */
+uint32 getEnabledSpecialDebugLevels();
+
+
} // End of namespace Common