mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
Added Common::getEnabledSpecialDebugLevels
svn-id: r25383
This commit is contained in:
parent
8ae2be31e0
commit
4e9e88ac1c
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user