aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2018-06-20 15:34:45 +0200
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commite9d1fa0c617537b23a5b4a863fd9ac048198e4b5 (patch)
tree92d4c36a2ffb9777d706ed476e076c7f436a1a51
parentbb8a64d22dd8b00fbf028bba6e0258cb7af8dd95 (diff)
downloadscummvm-rg350-e9d1fa0c617537b23a5b4a863fd9ac048198e4b5.tar.gz
scummvm-rg350-e9d1fa0c617537b23a5b4a863fd9ac048198e4b5.tar.bz2
scummvm-rg350-e9d1fa0c617537b23a5b4a863fd9ac048198e4b5.zip
PINK: Allow running from original media
-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() {