diff --git a/engines/ags/ags.h b/engines/ags/ags.h index b8b0e97e83e..751dfebe3ed 100644 --- a/engines/ags/ags.h +++ b/engines/ags/ags.h @@ -33,6 +33,7 @@ #include "engines/savestate.h" #include "graphics/surface.h" +#include "ags/detection.h" #include "ags/shared/gfx/bitmap.h" #include "ags/lib/allegro/system.h" #include "ags/engine/util/mutex_std.h" @@ -51,14 +52,6 @@ namespace AGS { #define SCREEN_WIDTH 320 #define SCREEN_HEIGHT 200 -enum AGSDebugChannels { - kDebugGraphics = 1 << 0, - kDebugPath = 1 << 1, - kDebugScan = 1 << 2, - kDebugFilePath = 1 << 3, - kDebugScript = 1 << 4 -}; - struct AGSGameDescription; struct PluginVersion; class EventsManager; diff --git a/engines/ags/detection.cpp b/engines/ags/detection.cpp index 22c2139b922..3a2a4e432a7 100644 --- a/engines/ags/detection.cpp +++ b/engines/ags/detection.cpp @@ -164,6 +164,15 @@ bool AGSOptionsWidget::save() { } // namespace AGS3 +const DebugChannelDef AGSMetaEngineDetection::debugFlagList[] = { + {AGS::kDebugGraphics, "Graphics", "Graphics debug level"}, + {AGS::kDebugPath, "Path", "Pathfinding debug level"}, + {AGS::kDebugFilePath, "FilePath", "File path debug level"}, + {AGS::kDebugScan, "Scan", "Scan for unrecognised games"}, + {AGS::kDebugScript, "Script", "Enable debug script dump"}, + DEBUG_CHANNEL_END +}; + AGSMetaEngineDetection::AGSMetaEngineDetection() : AdvancedMetaEngineDetection(AGS::GAME_DESCRIPTIONS, sizeof(AGS::AGSGameDescription), AGS::GAME_NAMES) { } diff --git a/engines/ags/detection.h b/engines/ags/detection.h index 5e1cf85de24..95eb4012595 100644 --- a/engines/ags/detection.h +++ b/engines/ags/detection.h @@ -24,19 +24,17 @@ #define AGS_DETECTION_H #include "engines/advancedDetector.h" -#include "ags/ags.h" - -static const DebugChannelDef debugFlagList[] = { - {AGS::kDebugGraphics, "Graphics", "Graphics debug level"}, - {AGS::kDebugPath, "Path", "Pathfinding debug level"}, - {AGS::kDebugFilePath, "FilePath", "File path debug level"}, - {AGS::kDebugScan, "Scan", "Scan for unrecognised games"}, - {AGS::kDebugScript, "Script", "Enable debug script dump"}, - DEBUG_CHANNEL_END -}; namespace AGS { +enum AGSDebugChannels { + kDebugGraphics = 1 << 0, + kDebugPath = 1 << 1, + kDebugScan = 1 << 2, + kDebugFilePath = 1 << 3, + kDebugScript = 1 << 4 +}; + struct PluginVersion { const char *_plugin; int _version; @@ -63,6 +61,8 @@ class AGSMetaEngineDetection : public AdvancedMetaEngineDetection { mutable Common::String _filename; mutable Common::String _md5; + static const DebugChannelDef debugFlagList[]; + public: AGSMetaEngineDetection(); ~AGSMetaEngineDetection() override {}