aboutsummaryrefslogtreecommitdiff
path: root/common/advancedDetector.h
diff options
context:
space:
mode:
authorMax Horn2007-06-15 17:36:41 +0000
committerMax Horn2007-06-15 17:36:41 +0000
commitd6e47d5fd322cf7cb61bee94b946096ecef64abb (patch)
tree76165532afde8da326a3568735b4e790d20e9b8d /common/advancedDetector.h
parenta097a11ce7847bd33e98aa48af8748ecbd07e390 (diff)
downloadscummvm-rg350-d6e47d5fd322cf7cb61bee94b946096ecef64abb.tar.gz
scummvm-rg350-d6e47d5fd322cf7cb61bee94b946096ecef64abb.tar.bz2
scummvm-rg350-d6e47d5fd322cf7cb61bee94b946096ecef64abb.zip
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
Diffstat (limited to 'common/advancedDetector.h')
-rw-r--r--common/advancedDetector.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/advancedDetector.h b/common/advancedDetector.h
index 2031f001a9..5066ba71e9 100644
--- a/common/advancedDetector.h
+++ b/common/advancedDetector.h
@@ -224,7 +224,11 @@ GameList gameIDList(const Common::ADParams &params);
* 'gameid' in there. If a match is found, returns a GameDescriptor
* with gameid and description set.
*/
-GameDescriptor findGameID(const char *gameid, const Common::ADParams &params);
+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 &params);
@@ -253,7 +257,7 @@ PluginError detectGameForEngineCreation(const Common::ADParams &params);
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); \