diff options
author | Max Horn | 2011-06-10 15:53:54 +0200 |
---|---|---|
committer | Max Horn | 2011-06-10 22:15:43 +0200 |
commit | b1965f9a3f48a40cb84ff22b76a95a1cfc4eef38 (patch) | |
tree | dfc1b19fb78c3aa6a49117942d09e64552584b29 /engines/mohawk/detection.cpp | |
parent | 97f82b5a93848ceeaa0701dd0f6038ba30f50ea3 (diff) | |
download | scummvm-rg350-b1965f9a3f48a40cb84ff22b76a95a1cfc4eef38.tar.gz scummvm-rg350-b1965f9a3f48a40cb84ff22b76a95a1cfc4eef38.tar.bz2 scummvm-rg350-b1965f9a3f48a40cb84ff22b76a95a1cfc4eef38.zip |
MOHAWK: Switch to alternate AdvancedMetaEngine, avoid ADParams
Diffstat (limited to 'engines/mohawk/detection.cpp')
-rw-r--r-- | engines/mohawk/detection.cpp | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/engines/mohawk/detection.cpp b/engines/mohawk/detection.cpp index 551c369d54..a7442729d2 100644 --- a/engines/mohawk/detection.cpp +++ b/engines/mohawk/detection.cpp @@ -158,35 +158,14 @@ static const char *directoryGlobs[] = { 0 }; -static const ADParams detectionParams = { - // Pointer to ADGameDescription or its superset structure - (const byte *)Mohawk::gameDescriptions, - // Size of that superset structure - sizeof(Mohawk::MohawkGameDescription), - // Number of bytes to compute MD5 sum for - 5000, - // List of all engine gameid - mohawkGames, - // Structure for autoupgrading obsolete gameids - 0, - // Name of single gameid (optional) - "mohawk", - // List of files for file-based fallback detection (optional) - Mohawk::fileBased, - // Flags - 0, - // Additional GUI options (for every game) - Common::GUIO_NONE, - // Maximum directory depth - 2, - // List of directory globs - directoryGlobs -}; - class MohawkMetaEngine : public AdvancedMetaEngine { public: - MohawkMetaEngine() : AdvancedMetaEngine(detectionParams) {} - + MohawkMetaEngine() : AdvancedMetaEngine(Mohawk::gameDescriptions, sizeof(Mohawk::MohawkGameDescription), mohawkGames) { + params.singleid = "mohawk"; + params.fileBasedFallback = Mohawk::fileBased; + params.depth = 2; + params.directoryGlobs = directoryGlobs; + } virtual const char *getName() const { return "Mohawk"; } |