aboutsummaryrefslogtreecommitdiff
path: root/common/advancedDetector.cpp
diff options
context:
space:
mode:
authorMax Horn2007-02-13 14:55:11 +0000
committerMax Horn2007-02-13 14:55:11 +0000
commit4968e912ce005f582a34cd0fba7395ebdfc7dc40 (patch)
treee1d2b83152b98238b69989cba3006439c122decb /common/advancedDetector.cpp
parent08079c9dec6f59b1e8d100d90ef83581a38aecbe (diff)
downloadscummvm-rg350-4968e912ce005f582a34cd0fba7395ebdfc7dc40.tar.gz
scummvm-rg350-4968e912ce005f582a34cd0fba7395ebdfc7dc40.tar.bz2
scummvm-rg350-4968e912ce005f582a34cd0fba7395ebdfc7dc40.zip
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
Diffstat (limited to 'common/advancedDetector.cpp')
-rw-r--r--common/advancedDetector.cpp5
1 files changed, 2 insertions, 3 deletions
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 &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())