ENGINES: Show the unknown Game dialog only when the detector is launched by the Add Game feature

This commit is contained in:
Lothar Serra Mari 2018-04-25 13:04:25 +02:00 committed by Thierry Crozat
parent 4220e14522
commit 451cf2304f
10 changed files with 26 additions and 26 deletions

View file

@ -514,7 +514,7 @@ GameDescriptor EngineManager::findGameInLoadedPlugins(const Common::String &game
return result;
}
GameList EngineManager::detectGames(const Common::FSList &fslist) const {
GameList EngineManager::detectGames(const Common::FSList &fslist, bool useUnknownGameDialog) const {
GameList candidates;
PluginList plugins;
PluginList::const_iterator iter;
@ -524,7 +524,7 @@ GameList EngineManager::detectGames(const Common::FSList &fslist) const {
// Iterate over all known games and for each check if it might be
// the game in the presented directory.
for (iter = plugins.begin(); iter != plugins.end(); ++iter) {
candidates.push_back((*iter)->get<MetaEngine>().detectGames(fslist));
candidates.push_back((*iter)->get<MetaEngine>().detectGames(fslist, useUnknownGameDialog));
}
} while (PluginManager::instance().loadNextPlugin());
return candidates;