AD: Set scan depth when adding globs generated from the entries. Default is 5
This commit is contained in:
parent
7b76c345f2
commit
9ba4a77a3b
2 changed files with 9 additions and 1 deletions
|
@ -461,7 +461,7 @@ Common::Error AdvancedMetaEngineDetection::createInstance(OSystem *syst, Engine
|
||||||
Common::FSNode gameDataDir = Common::FSNode(ConfMan.get("path"));
|
Common::FSNode gameDataDir = Common::FSNode(ConfMan.get("path"));
|
||||||
|
|
||||||
for (auto d = dirs.begin(); d != dirs.end(); ++d)
|
for (auto d = dirs.begin(); d != dirs.end(); ++d)
|
||||||
SearchMan.addSubDirectoryMatching(gameDataDir, *d);
|
SearchMan.addSubDirectoryMatching(gameDataDir, *d, 0, _fullPathGlobsDepth);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call child class's createInstanceMethod.
|
// Call child class's createInstanceMethod.
|
||||||
|
@ -867,6 +867,7 @@ AdvancedMetaEngineDetection::AdvancedMetaEngineDetection(const void *descs, uint
|
||||||
_maxScanDepth = 1;
|
_maxScanDepth = 1;
|
||||||
_directoryGlobs = NULL;
|
_directoryGlobs = NULL;
|
||||||
_maxAutogenLength = 15;
|
_maxAutogenLength = 15;
|
||||||
|
_fullPathGlobsDepth = 5;
|
||||||
|
|
||||||
_hashMapsInited = false;
|
_hashMapsInited = false;
|
||||||
|
|
||||||
|
|
|
@ -352,6 +352,13 @@ protected:
|
||||||
*/
|
*/
|
||||||
int _maxAutogenLength;
|
int _maxAutogenLength;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If kADFlagMatchFullPaths is set, then use this value for specifying
|
||||||
|
* depth for addSubDirectoryMatching() call
|
||||||
|
* The default is 5;
|
||||||
|
*/
|
||||||
|
int _fullPathGlobsDepth;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Initialize game detection using AdvancedMetaEngineDetection.
|
* Initialize game detection using AdvancedMetaEngineDetection.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue