diff options
author | Max Horn | 2011-06-10 15:53:58 +0200 |
---|---|---|
committer | Max Horn | 2011-06-10 22:15:46 +0200 |
commit | 59d56b66878ce9a5119c2278262fd37289685b4f (patch) | |
tree | 6315a8cf16df97c69c356b6b4352e0e248a7f8d9 /engines/tucker | |
parent | 0031e0834911ad3b4dbec262aec0dd30858e96fc (diff) | |
download | scummvm-rg350-59d56b66878ce9a5119c2278262fd37289685b4f.tar.gz scummvm-rg350-59d56b66878ce9a5119c2278262fd37289685b4f.tar.bz2 scummvm-rg350-59d56b66878ce9a5119c2278262fd37289685b4f.zip |
TUCKER: Switch to alternate AdvancedMetaEngine, avoid ADParams
Diffstat (limited to 'engines/tucker')
-rw-r--r-- | engines/tucker/detection.cpp | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/engines/tucker/detection.cpp b/engines/tucker/detection.cpp index fe7cb4779a..3eb3973371 100644 --- a/engines/tucker/detection.cpp +++ b/engines/tucker/detection.cpp @@ -102,31 +102,6 @@ static const ADGameDescription tuckerGameDescriptions[] = { AD_TABLE_END_MARKER }; -static const ADParams detectionParams = { - // Pointer to ADGameDescription or its superset structure - (const byte *)tuckerGameDescriptions, - // Size of that superset structure - sizeof(ADGameDescription), - // Number of bytes to compute MD5 sum for - 512, - // List of all engine gameid - tuckerGames, - // Structure for autoupgrading obsolete gameids - 0, - // Name of single gameid (optional) - "tucker", - // List of files for file-based fallback detection (optional) - 0, - // Flags - 0, - // Additional GUI options (for every game) - Common::GUIO_NONE, - // Maximum directory depth - 1, - // List of directory globs - 0 -}; - static const ADGameDescription tuckerDemoGameDescription = { "tucker", "Non-Interactive Demo", @@ -139,7 +114,9 @@ static const ADGameDescription tuckerDemoGameDescription = { class TuckerMetaEngine : public AdvancedMetaEngine { public: - TuckerMetaEngine() : AdvancedMetaEngine(detectionParams) { + TuckerMetaEngine() : AdvancedMetaEngine(tuckerGameDescriptions, sizeof(ADGameDescription), tuckerGames) { + params.md5Bytes = 512; + params.singleid = "tucker"; } virtual const char *getName() const { |