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"));
|
||||
|
||||
for (auto d = dirs.begin(); d != dirs.end(); ++d)
|
||||
SearchMan.addSubDirectoryMatching(gameDataDir, *d);
|
||||
SearchMan.addSubDirectoryMatching(gameDataDir, *d, 0, _fullPathGlobsDepth);
|
||||
}
|
||||
|
||||
// Call child class's createInstanceMethod.
|
||||
|
@ -867,6 +867,7 @@ AdvancedMetaEngineDetection::AdvancedMetaEngineDetection(const void *descs, uint
|
|||
_maxScanDepth = 1;
|
||||
_directoryGlobs = NULL;
|
||||
_maxAutogenLength = 15;
|
||||
_fullPathGlobsDepth = 5;
|
||||
|
||||
_hashMapsInited = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue