[Scummvm-cvs-logs] SF.net SVN: scummvm: [32838] scummvm/trunk/backends/platform/dc/selector. cpp

marcus_c at users.sourceforge.net marcus_c at users.sourceforge.net
Sun Jun 29 14:10:39 CEST 2008


Revision: 32838
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32838&view=rev
Author:   marcus_c
Date:     2008-06-29 05:10:38 -0700 (Sun, 29 Jun 2008)

Log Message:
-----------
Updated to use new EngineMan.detectGames() API.

Modified Paths:
--------------
    scummvm/trunk/backends/platform/dc/selector.cpp

Modified: scummvm/trunk/backends/platform/dc/selector.cpp
===================================================================
--- scummvm/trunk/backends/platform/dc/selector.cpp	2008-06-29 12:08:53 UTC (rev 32837)
+++ scummvm/trunk/backends/platform/dc/selector.cpp	2008-06-29 12:10:38 UTC (rev 32838)
@@ -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 @@
 
 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 @@
 	  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)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list