ADV detector: Refactored findGameID() a bit, making it possible to use it outside the AdvancedDetector framework; also made it generate somewhat more user friendly desc for obsolete game IDs
svn-id: r27424
This commit is contained in:
parent
a097a11ce7
commit
d6e47d5fd3
4 changed files with 24 additions and 14 deletions
|
@ -224,7 +224,11 @@ GameList gameIDList(const Common::ADParams ¶ms);
|
|||
* 'gameid' in there. If a match is found, returns a GameDescriptor
|
||||
* with gameid and description set.
|
||||
*/
|
||||
GameDescriptor findGameID(const char *gameid, const Common::ADParams ¶ms);
|
||||
GameDescriptor findGameID(
|
||||
const char *gameid,
|
||||
const PlainGameDescriptor *list,
|
||||
const Common::ADObsoleteGameID *obsoleteList = 0
|
||||
);
|
||||
|
||||
// FIXME/TODO: Rename this function to something more sensible.
|
||||
GameList detectAllGames(const FSList &fslist, const Common::ADParams ¶ms);
|
||||
|
@ -253,7 +257,7 @@ PluginError detectGameForEngineCreation(const Common::ADParams ¶ms);
|
|||
return Common::AdvancedDetector::gameIDList(params); \
|
||||
} \
|
||||
GameDescriptor Engine_##engine##_findGameID(const char *gameid) { \
|
||||
return Common::AdvancedDetector::findGameID(gameid, params); \
|
||||
return Common::AdvancedDetector::findGameID(gameid, params.list, params.obsoleteList); \
|
||||
} \
|
||||
GameList Engine_##engine##_detectGames(const FSList &fslist) { \
|
||||
return Common::AdvancedDetector::detectAllGames(fslist, params); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue