COMMON: (AD) - allow mass add to skip targets with certain ADGF flags
I added skipping for the ADGF_WARNING and ADGF_UNSUPPORTED flags. For me, this is mostly about fixing bug no. 13282. We sometimes have bogus entries which only have the purpose of presenting the error message (reasons for being unsupported) contained in the extra field of the detection entry.
This commit is contained in:
parent
d6ea312d29
commit
e01416ef32
14 changed files with 40 additions and 32 deletions
|
@ -717,7 +717,7 @@ QualifiedGameList EngineManager::findGameInLoadedPlugins(const Common::String &g
|
|||
return results;
|
||||
}
|
||||
|
||||
DetectionResults EngineManager::detectGames(const Common::FSList &fslist) {
|
||||
DetectionResults EngineManager::detectGames(const Common::FSList &fslist, uint32 skipADFlags) {
|
||||
DetectedGames candidates;
|
||||
PluginList plugins;
|
||||
PluginList::const_iterator iter;
|
||||
|
@ -735,7 +735,7 @@ DetectionResults EngineManager::detectGames(const Common::FSList &fslist) {
|
|||
MetaEngineDetection &metaEngine = (*iter)->get<MetaEngineDetection>();
|
||||
// set the debug flags
|
||||
DebugMan.addAllDebugChannels(metaEngine.getDebugChannels());
|
||||
DetectedGames engineCandidates = metaEngine.detectGames(fslist);
|
||||
DetectedGames engineCandidates = metaEngine.detectGames(fslist, skipADFlags);
|
||||
|
||||
for (uint i = 0; i < engineCandidates.size(); i++) {
|
||||
engineCandidates[i].path = fslist.begin()->getParent().getPath();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue