diff options
author | Marcus Comstedt | 2008-06-29 12:10:38 +0000 |
---|---|---|
committer | Marcus Comstedt | 2008-06-29 12:10:38 +0000 |
commit | 4b09d0829242888a064acfe7f3cc5f6a947b5872 (patch) | |
tree | 654b34bf7f34fb9b43dc70c0831748d3122981af /backends/platform/dc | |
parent | 3f22509321873455cde9723f74fe23ba37f2f675 (diff) | |
download | scummvm-rg350-4b09d0829242888a064acfe7f3cc5f6a947b5872.tar.gz scummvm-rg350-4b09d0829242888a064acfe7f3cc5f6a947b5872.tar.bz2 scummvm-rg350-4b09d0829242888a064acfe7f3cc5f6a947b5872.zip |
Updated to use new EngineMan.detectGames() API.
svn-id: r32838
Diffstat (limited to 'backends/platform/dc')
-rw-r--r-- | backends/platform/dc/selector.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/backends/platform/dc/selector.cpp b/backends/platform/dc/selector.cpp index 880fbc400f..91c851506f 100644 --- a/backends/platform/dc/selector.cpp +++ b/backends/platform/dc/selector.cpp @@ -25,7 +25,9 @@ #include <common/scummsys.h> #include <engines/engine.h> +#include <engines/metaengine.h> #include <base/plugins.h> +#include <base/game.h> #include <common/fs.h> #include <common/events.h> #include "dc.h" @@ -149,15 +151,6 @@ struct Dir static Game the_game; -static void detectGames(FSList &files, GameList &candidates) -{ - const EnginePluginList &plugins = EngineMan.getPlugins(); - EnginePluginList::const_iterator iter = plugins.begin(); - for (iter = plugins.begin(); iter != plugins.end(); ++iter) { - candidates.push_back((*iter)->detectGames(files)); - } -} - static bool isIcon(const FilesystemNode &entry) { int l = entry.getDisplayName().size(); @@ -227,8 +220,7 @@ static int findGames(Game *games, int max) files.push_back(*entry); } - GameList candidates; - detectGames(files, candidates); + GameList candidates = EngineMan.detectGames(files); for (GameList::const_iterator ge = candidates.begin(); ge != candidates.end(); ++ge) |