diff options
| author | Max Horn | 2007-06-15 17:36:41 +0000 | 
|---|---|---|
| committer | Max Horn | 2007-06-15 17:36:41 +0000 | 
| commit | d6e47d5fd322cf7cb61bee94b946096ecef64abb (patch) | |
| tree | 76165532afde8da326a3568735b4e790d20e9b8d /common/advancedDetector.h | |
| parent | a097a11ce7847bd33e98aa48af8748ecbd07e390 (diff) | |
| download | scummvm-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.h | 8 | 
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 ¶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); \ | 
