diff options
| -rw-r--r-- | engines/sword25/detection.cpp | 34 | 
1 files changed, 6 insertions, 28 deletions
| diff --git a/engines/sword25/detection.cpp b/engines/sword25/detection.cpp index 6e639965e9..c704b3e833 100644 --- a/engines/sword25/detection.cpp +++ b/engines/sword25/detection.cpp @@ -31,7 +31,7 @@ namespace Sword25 {  uint32 Sword25Engine::getGameFlags() const { return _gameDescription->flags; }  } -static const PlainGameDescriptor Sword25Game[] = { +static const PlainGameDescriptor sword25Game[] = {  	{"sword25", "Broken Sword 2.5"},  	{0, 0}  }; @@ -41,35 +41,13 @@ static const char *directoryGlobs[] = {  	0  }; -static const ADParams detectionParams = { -	// Pointer to ADGameDescription or its superset structure -	(const byte *)Sword25::gameDescriptions, -	// Size of that superset structure -	sizeof(ADGameDescription), -	// Number of bytes to compute MD5 sum for -	5000, -	// List of all engine gameid -	Sword25Game, -	// Structure for autoupgrading obsolete gameids -	0, -	// Name of single gameid (optional) -	NULL, -	// List of files for file-based fallback detection (optional) -	0, -	// Flags -	0, -	// Additional GUI options (for every game} -	Common::GUIO_NOMIDI, -	// Maximum directory depth -	2, -	// List of directory globs -	directoryGlobs -}; -  class Sword25MetaEngine : public AdvancedMetaEngine {  public: -	Sword25MetaEngine() : AdvancedMetaEngine(detectionParams) {} - +	Sword25MetaEngine() : AdvancedMetaEngine(Sword25::gameDescriptions, sizeof(ADGameDescription), sword25Game) { +		params.guioptions = Common::GUIO_NOMIDI; +		params.depth = 2; +		params.directoryGlobs = directoryGlobs; +	}  	virtual const char *getName() const {  		return "Sword25";  	} | 
