AdvancedDetector changes:

* Renamed genGameList to gameIDList to make it match the corresponding
  plugin API function name
* removed the detectFunc param from detectGameForEngineCreation,
  as it *always* pointed to a straight wrapper around AdvancedDetector::detectAllGames
* as a consequence, removed the various GAME_detectGames functions from the
  engines, and removed the detectFunc param from ADVANCED_DETECTOR_DEFINE_PLUGIN

svn-id: r25547
This commit is contained in:
Max Horn 2007-02-13 14:55:11 +00:00
parent 08079c9dec
commit 4968e912ce
9 changed files with 17 additions and 58 deletions

View file

@ -50,7 +50,7 @@ namespace AdvancedDetector {
static ADList detectGame(const FSList *fslist, const Common::ADParams &params, Language language, Platform platform);
GameList genGameList(const Common::ADParams &params) {
GameList gameIDList(const Common::ADParams &params) {
if (params.singleid != NULL) {
GameList gl;
@ -221,7 +221,6 @@ int detectBestMatchingGame(
}
PluginError detectGameForEngineCreation(
GameList (*detectFunc)(const FSList &fslist),
const Common::ADParams &params
) {
Common::String gameid = ConfMan.get("gameid");
@ -232,7 +231,7 @@ PluginError detectGameForEngineCreation(
return kInvalidPathError;
}
GameList detectedGames = detectFunc(fslist);
GameList detectedGames = detectAllGames(fslist, params);
// We have single ID set, so we have a game if there are hits
if (params.singleid != NULL && detectedGames.size())