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:
parent
08079c9dec
commit
4968e912ce
9 changed files with 17 additions and 58 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue