aboutsummaryrefslogtreecommitdiff
path: root/engines/pink
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink')
-rw-r--r--engines/pink/detection.cpp8
-rw-r--r--engines/pink/pink.cpp3
2 files changed, 11 insertions, 0 deletions
diff --git a/engines/pink/detection.cpp b/engines/pink/detection.cpp
index 71b353526f..d64354885c 100644
--- a/engines/pink/detection.cpp
+++ b/engines/pink/detection.cpp
@@ -32,10 +32,18 @@ static const PlainGameDescriptor pinkGames[] = {
#include "detection_tables.h"
+static const char *directoryGlobs[] = {
+ "install",
+ nullptr
+};
+
+
class PinkMetaEngine : public AdvancedMetaEngine {
public:
PinkMetaEngine() : AdvancedMetaEngine(Pink::gameDescriptions, sizeof(ADGameDescription), pinkGames) {
_gameIds = pinkGames;
+ _maxScanDepth = 2;
+ _directoryGlobs = directoryGlobs;
}
virtual const char *getName() const {
diff --git a/engines/pink/pink.cpp b/engines/pink/pink.cpp
index 71b42c303f..ffa35a2cc4 100644
--- a/engines/pink/pink.cpp
+++ b/engines/pink/pink.cpp
@@ -49,6 +49,9 @@ Pink::PinkEngine::PinkEngine(OSystem *system, const ADGameDescription *desc)
DebugMan.addDebugChannel(kPinkDebugLoadingResources, "loading_resources", "Loading resources data");
DebugMan.addDebugChannel(kPinkDebugGraphics, "graphics", "Graphics handling");
DebugMan.addDebugChannel(kPinkDebugSound, "sound", "Sound processing");
+
+ const Common::FSNode gameDataDir(ConfMan.get("path"));
+ SearchMan.addSubDirectoryMatching(gameDataDir, "install");
}
Pink::PinkEngine::~PinkEngine() {