COMMON: (AD) - further reduce output of mass add detection

Follow-up to the feature that allows skipping certain ADGF flags.

This here now also allows skipping of incomplete file/md5/size matches. It is basically the same behavior as the graylist. For the mass add all files are treated as if they are on the list.
This commit is contained in:
athrxx 2022-05-15 03:57:40 +02:00 committed by Eugene Sandulenko
parent e01416ef32
commit 54af166305
14 changed files with 37 additions and 36 deletions

View file

@ -717,7 +717,7 @@ QualifiedGameList EngineManager::findGameInLoadedPlugins(const Common::String &g
return results;
}
DetectionResults EngineManager::detectGames(const Common::FSList &fslist, uint32 skipADFlags) {
DetectionResults EngineManager::detectGames(const Common::FSList &fslist, uint32 skipADFlags, bool skipIncomplete) {
DetectedGames candidates;
PluginList plugins;
PluginList::const_iterator iter;
@ -735,7 +735,7 @@ DetectionResults EngineManager::detectGames(const Common::FSList &fslist, uint32
MetaEngineDetection &metaEngine = (*iter)->get<MetaEngineDetection>();
// set the debug flags
DebugMan.addAllDebugChannels(metaEngine.getDebugChannels());
DetectedGames engineCandidates = metaEngine.detectGames(fslist, skipADFlags);
DetectedGames engineCandidates = metaEngine.detectGames(fslist, skipADFlags, skipIncomplete);
for (uint i = 0; i < engineCandidates.size(); i++) {
engineCandidates[i].path = fslist.begin()->getParent().getPath();