aboutsummaryrefslogtreecommitdiff
path: root/gui/launcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r--gui/launcher.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 7a9d610c3a..0a3aa80f58 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -766,7 +766,7 @@ void LauncherDialog::addGame() {
// ...so let's determine a list of candidates, games that
// could be contained in the specified directory.
GameList candidates(EngineMan.detectGames(files));
-
+
int idx;
if (candidates.empty()) {
// No game was found in the specified directory
@@ -907,7 +907,12 @@ void LauncherDialog::loadGame(int item) {
gameId = _domains[item];
const EnginePlugin *plugin = 0;
+
+#if defined(ONE_PLUGIN_AT_A_TIME) && defined(DYNAMIC_MODULES)
+ EngineMan.findGameOnePlugAtATime(gameId, &plugin);
+#else
EngineMan.findGame(gameId, &plugin);
+#endif
String target = _domains[item];
target.toLowercase();