aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/about.cpp4
-rw-r--r--gui/launcher.cpp7
-rw-r--r--gui/massadd.cpp3
3 files changed, 6 insertions, 8 deletions
diff --git a/gui/about.cpp b/gui/about.cpp
index c346d5ad87..b4d8cb0bf2 100644
--- a/gui/about.cpp
+++ b/gui/about.cpp
@@ -128,8 +128,8 @@ AboutDialog::AboutDialog()
_lines.push_back("");
addLine("\\C\\c1""Available engines:");
- const PluginList &plugins = PluginManager::instance().getPlugins();
- PluginList::const_iterator iter = plugins.begin();
+ const EnginePluginList &plugins = EngineMan.getPlugins();
+ EnginePluginList::const_iterator iter = plugins.begin();
for (; iter != plugins.end(); ++iter) {
Common::String str;
str = "\\C";
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 2be703a405..505ecf842b 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -23,7 +23,6 @@
*/
#include "engines/engine.h"
-#include "base/game.h"
#include "base/plugins.h"
#include "base/version.h"
@@ -582,7 +581,7 @@ void LauncherDialog::updateListing() {
if (gameid.empty())
gameid = iter->_key;
if (description.empty()) {
- GameDescriptor g = Base::findGame(gameid);
+ GameDescriptor g = EngineMan.findGame(gameid);
if (g.contains("description"))
description = g.description();
}
@@ -659,7 +658,7 @@ void LauncherDialog::addGame() {
// ...so let's determine a list of candidates, games that
// could be contained in the specified directory.
- GameList candidates(PluginManager::instance().detectGames(files));
+ GameList candidates(EngineMan.detectGames(files));
int idx;
if (candidates.empty()) {
@@ -783,7 +782,7 @@ void LauncherDialog::editGame(int item) {
String gameId(ConfMan.get("gameid", _domains[item]));
if (gameId.empty())
gameId = _domains[item];
- EditGameDialog editDialog(_domains[item], Base::findGame(gameId).description());
+ EditGameDialog editDialog(_domains[item], EngineMan.findGame(gameId).description());
if (editDialog.runModal() > 0) {
// User pressed OK, so make changes permanent
diff --git a/gui/massadd.cpp b/gui/massadd.cpp
index 934957e80b..446285af2d 100644
--- a/gui/massadd.cpp
+++ b/gui/massadd.cpp
@@ -23,7 +23,6 @@
*/
#include "engines/engine.h"
-#include "base/game.h"
#include "base/plugins.h"
#include "common/events.h"
@@ -132,7 +131,7 @@ void MassAddDialog::handleTickle() {
}
// Run the detector on the dir
- GameList candidates(PluginManager::instance().detectGames(files));
+ GameList candidates(EngineMan.detectGames(files));
// Just add all detected games / game variants. If we get more than one,
// that either means the directory contains multiple games, or the detector