PINK: Allow running from original media

This commit is contained in:
Eugene Sandulenko 2018-06-20 15:34:45 +02:00
parent bb8a64d22d
commit e9d1fa0c61
2 changed files with 11 additions and 0 deletions

View File

@ -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 {

View File

@ -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() {