diff options
author | Max Horn | 2011-06-10 15:53:54 +0200 |
---|---|---|
committer | Max Horn | 2011-06-10 22:15:43 +0200 |
commit | dec7df0f16c0615482f6ae2830cfee1690afe5fc (patch) | |
tree | 0395927fb5e49d4853807ad353abf420569d2b60 /engines | |
parent | 3491bf5b789f8fdc824e4aae346c7824550e841c (diff) | |
download | scummvm-rg350-dec7df0f16c0615482f6ae2830cfee1690afe5fc.tar.gz scummvm-rg350-dec7df0f16c0615482f6ae2830cfee1690afe5fc.tar.bz2 scummvm-rg350-dec7df0f16c0615482f6ae2830cfee1690afe5fc.zip |
M4: Switch to alternate AdvancedMetaEngine, avoid ADParams
Diffstat (limited to 'engines')
-rw-r--r-- | engines/m4/detection.cpp | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/engines/m4/detection.cpp b/engines/m4/detection.cpp index 49a38d2f00..bab17d9e1d 100644 --- a/engines/m4/detection.cpp +++ b/engines/m4/detection.cpp @@ -384,34 +384,14 @@ static const char *directoryGlobs[] = { 0 }; -static const ADParams detectionParams = { - // Pointer to ADGameDescription or its superset structure - (const byte *)M4::gameDescriptions, - // Size of that superset structure - sizeof(M4::M4GameDescription), - // Number of bytes to compute MD5 sum for - 5000, - // List of all engine gameid - m4Games, - // Structure for autoupgrading obsolete gameids - 0, - // Name of single gameid (optional) - "m4", - // 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 M4MetaEngine : public AdvancedMetaEngine { public: - M4MetaEngine() : AdvancedMetaEngine(detectionParams) {} + M4MetaEngine() : AdvancedMetaEngine(M4::gameDescriptions, sizeof(M4::M4GameDescription), m4Games) { + params.singleid = "m4"; + params.guioptions = Common::GUIO_NOMIDI; + params.depth = 2; + params.directoryGlobs = directoryGlobs; + } virtual const char *getName() const { return "MADS/M4"; |