From 451cf2304f8e27b3f5aab9cfa56d7b9bcdc8ffcf Mon Sep 17 00:00:00 2001 From: Lothar Serra Mari Date: Wed, 25 Apr 2018 13:04:25 +0200 Subject: ENGINES: Show the unknown Game dialog only when the detector is launched by the Add Game feature --- base/plugins.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base') diff --git a/base/plugins.cpp b/base/plugins.cpp index b8f63fd443..852786919b 100644 --- a/base/plugins.cpp +++ b/base/plugins.cpp @@ -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().detectGames(fslist)); + candidates.push_back((*iter)->get().detectGames(fslist, useUnknownGameDialog)); } } while (PluginManager::instance().loadNextPlugin()); return candidates; -- cgit v1.2.3