diff options
author | Max Horn | 2011-06-10 15:53:57 +0200 |
---|---|---|
committer | Max Horn | 2011-06-10 22:15:45 +0200 |
commit | 5e9039369790379362c29619453327d2b3be4170 (patch) | |
tree | a9e9f21cb1b32b81c597d8a80b79ed9e7c290488 /engines | |
parent | ce1a8576694ede9434d4e44babc4dead9f6b44d7 (diff) | |
download | scummvm-rg350-5e9039369790379362c29619453327d2b3be4170.tar.gz scummvm-rg350-5e9039369790379362c29619453327d2b3be4170.tar.bz2 scummvm-rg350-5e9039369790379362c29619453327d2b3be4170.zip |
TOON: Switch to alternate AdvancedMetaEngine, avoid ADParams
Diffstat (limited to 'engines')
-rw-r--r-- | engines/toon/detection.cpp | 35 |
1 files changed, 7 insertions, 28 deletions
diff --git a/engines/toon/detection.cpp b/engines/toon/detection.cpp index be47d24c29..8ddfcd4fed 100644 --- a/engines/toon/detection.cpp +++ b/engines/toon/detection.cpp @@ -28,7 +28,7 @@ #include "graphics/thumbnail.h" #include "toon/toon.h" -static const PlainGameDescriptor ToonGames[] = { +static const PlainGameDescriptor toonGames[] = { { "toon", "Toonstruck" }, { 0, 0 } }; @@ -117,35 +117,14 @@ static const char * const directoryGlobs[] = { 0 }; -static const ADParams detectionParams = { - // Pointer to ADGameDescription or its superset structure - (const byte *)Toon::gameDescriptions, - // Size of that superset structure - sizeof(ADGameDescription), - // Number of bytes to compute MD5 sum for - 5000, - // List of all engine gameid - ToonGames, - // Structure for autoupgrading obsolete gameids - 0, - // Name of single gameid (optional) - "toon", - // List of files for file-based fallback detection (optional) - Toon::fileBasedFallback, - // Flags - 0, - // Additional GUI options (for every game} - Common::GUIO_NONE, - // Maximum directory depth - 3, - // List of directory globs - directoryGlobs -}; - class ToonMetaEngine : public AdvancedMetaEngine { public: - ToonMetaEngine() : AdvancedMetaEngine(detectionParams) {} - + ToonMetaEngine() : AdvancedMetaEngine(Toon::gameDescriptions, sizeof(ADGameDescription), toonGames) { + params.singleid = "toon"; + params.fileBasedFallback = Toon::fileBasedFallback; + params.depth = 3; + params.directoryGlobs = directoryGlobs; + } virtual const char *getName() const { return "Toon"; } |