From 4968e912ce005f582a34cd0fba7395ebdfc7dc40 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 13 Feb 2007 14:55:11 +0000 Subject: 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 --- common/advancedDetector.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'common/advancedDetector.cpp') diff --git a/common/advancedDetector.cpp b/common/advancedDetector.cpp index 856d10fc3c..70529bc430 100644 --- a/common/advancedDetector.cpp +++ b/common/advancedDetector.cpp @@ -50,7 +50,7 @@ namespace AdvancedDetector { static ADList detectGame(const FSList *fslist, const Common::ADParams ¶ms, Language language, Platform platform); -GameList genGameList(const Common::ADParams ¶ms) { +GameList gameIDList(const Common::ADParams ¶ms) { if (params.singleid != NULL) { GameList gl; @@ -221,7 +221,6 @@ int detectBestMatchingGame( } PluginError detectGameForEngineCreation( - GameList (*detectFunc)(const FSList &fslist), const Common::ADParams ¶ms ) { 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()) -- cgit v1.2.3