diff options
author | Lothar Serra Mari | 2018-04-25 13:04:25 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-04-29 21:47:10 +0100 |
commit | 451cf2304f8e27b3f5aab9cfa56d7b9bcdc8ffcf (patch) | |
tree | 7787d5d3afdde669d72764928ac7ad3ad4893e2a /base | |
parent | 4220e14522c69205e08de8c2676b6fdc858e5a42 (diff) | |
download | scummvm-rg350-451cf2304f8e27b3f5aab9cfa56d7b9bcdc8ffcf.tar.gz scummvm-rg350-451cf2304f8e27b3f5aab9cfa56d7b9bcdc8ffcf.tar.bz2 scummvm-rg350-451cf2304f8e27b3f5aab9cfa56d7b9bcdc8ffcf.zip |
ENGINES: Show the unknown Game dialog only when the detector is launched by the Add Game feature
Diffstat (limited to 'base')
-rw-r--r-- | base/plugins.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<MetaEngine>().detectGames(fslist)); + candidates.push_back((*iter)->get<MetaEngine>().detectGames(fslist, useUnknownGameDialog)); } } while (PluginManager::instance().loadNextPlugin()); return candidates; |