aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorTony Puccinelli2010-08-05 00:26:46 +0000
committerTony Puccinelli2010-08-05 00:26:46 +0000
commit66b42d486b052fccd8f70ed0cbbee7c113463f61 (patch)
tree555710e092492df6a0556b29b74c2e31b64d0bcc /gui
parent520c0a40098a9687f4d85343267cda9c5b5c971b (diff)
downloadscummvm-rg350-66b42d486b052fccd8f70ed0cbbee7c113463f61.tar.gz
scummvm-rg350-66b42d486b052fccd8f70ed0cbbee7c113463f61.tar.bz2
scummvm-rg350-66b42d486b052fccd8f70ed0cbbee7c113463f61.zip
added intermediary function 'findGameOnePlugAtATime' and switched load game and run game code to use it. Added checks for DYNAMIC_MODULES defines to the checks for NEW_PLUGIN_DESIGN_FIRST_REFINEMENT
svn-id: r51746
Diffstat (limited to 'gui')
-rw-r--r--gui/launcher.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 0f484c5233..732286c2a0 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -708,7 +708,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
@@ -849,7 +849,12 @@ void LauncherDialog::loadGame(int item) {
gameId = _domains[item];
const EnginePlugin *plugin = 0;
+
+#if defined(NEW_PLUGIN_DESIGN_FIRST_REFINEMENT) && defined(DYNAMIC_MODULES)
+ EngineMan.findGameOnePlugAtATime(gameId, &plugin);
+#else
EngineMan.findGame(gameId, &plugin);
+#endif
String target = _domains[item];
target.toLowercase();