AD: Set scan depth when adding globs generated from the entries. Default is 5

This commit is contained in:
Eugene Sandulenko 2023-02-02 18:23:28 +01:00
parent 7b76c345f2
commit 9ba4a77a3b
No known key found for this signature in database
GPG key ID: 014D387312D34F08
2 changed files with 9 additions and 1 deletions

View file

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