Skip to content

Commit

Permalink
PINK: Allow running from original media
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jun 28, 2018
1 parent bb8a64d commit e9d1fa0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engines/pink/detection.cpp
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions engines/pink/pink.cpp
Expand Up @@ -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() {
Expand Down

0 comments on commit e9d1fa0

Please sign in to comment.