diff options
author | Max Horn | 2011-06-10 15:53:53 +0200 |
---|---|---|
committer | Max Horn | 2011-06-10 22:15:42 +0200 |
commit | 39aa627083ef0a6654909930e42bc1f8f6de4a28 (patch) | |
tree | 2b9b7eb0c33fcb8bd036bde37f7a72b330016518 /engines/hugo | |
parent | 0d581ba46dcbb8ef616a450ca0cf09d9072b9183 (diff) | |
download | scummvm-rg350-39aa627083ef0a6654909930e42bc1f8f6de4a28.tar.gz scummvm-rg350-39aa627083ef0a6654909930e42bc1f8f6de4a28.tar.bz2 scummvm-rg350-39aa627083ef0a6654909930e42bc1f8f6de4a28.zip |
HUGO: Switch to alternate AdvancedMetaEngine, avoid ADParams
Diffstat (limited to 'engines/hugo')
-rw-r--r-- | engines/hugo/detection.cpp | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/engines/hugo/detection.cpp b/engines/hugo/detection.cpp index 29f5d9e6f2..f70a21aa8f 100644 --- a/engines/hugo/detection.cpp +++ b/engines/hugo/detection.cpp @@ -131,34 +131,10 @@ static const HugoGameDescription gameDescriptions[] = { {AD_TABLE_END_MARKER, kGameTypeNone} }; -static const ADParams detectionParams = { - // Pointer to ADGameDescription or its superset structure - (const byte *)gameDescriptions, - // Size of that superset structure - sizeof(HugoGameDescription), - // Number of bytes to compute MD5 sum for - 5000, - // List of all engine gameid - hugoGames, - // Structure for autoupgrading obsolete gameids - 0, - // Name of single gameid (optional) - 0, - // 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 -}; - class HugoMetaEngine : public AdvancedMetaEngine { public: - HugoMetaEngine() : AdvancedMetaEngine(detectionParams) {} + HugoMetaEngine() : AdvancedMetaEngine(gameDescriptions, sizeof(HugoGameDescription), hugoGames) { + } const char *getName() const { return "Hugo"; |