diff options
author | Max Horn | 2011-06-10 15:53:55 +0200 |
---|---|---|
committer | Max Horn | 2011-06-10 22:15:44 +0200 |
commit | b99d76acdbc990f24fc34c2b3f5f0ff6ab68422c (patch) | |
tree | 7c2cd55d5975b855b6b0f4a745d12e0c1017c5bc /engines/sci | |
parent | 6fb0d6e8e970c59b5f3cffaf12b2560d2687fdff (diff) | |
download | scummvm-rg350-b99d76acdbc990f24fc34c2b3f5f0ff6ab68422c.tar.gz scummvm-rg350-b99d76acdbc990f24fc34c2b3f5f0ff6ab68422c.tar.bz2 scummvm-rg350-b99d76acdbc990f24fc34c2b3f5f0ff6ab68422c.zip |
SCI: Switch to alternate AdvancedMetaEngine, avoid ADParams
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/detection.cpp | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp index 6fb28fcff9..302ba13247 100644 --- a/engines/sci/detection.cpp +++ b/engines/sci/detection.cpp @@ -371,35 +371,11 @@ static ADGameDescription s_fallbackDesc = { static char s_fallbackGameIdBuf[256]; - -static const ADParams detectionParams = { - // Pointer to ADGameDescription or its superset structure - (const byte *)Sci::SciGameDescriptions, - // Size of that superset structure - sizeof(ADGameDescription), - // Number of bytes to compute MD5 sum for - 5000, - // List of all engine gameid - s_sciGameTitles, - // Structure for autoupgrading obsolete gameids - 0, - // Name of single gameid (optional) - "sci", - // 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 SciMetaEngine : public AdvancedMetaEngine { public: - SciMetaEngine() : AdvancedMetaEngine(detectionParams) {} + SciMetaEngine() : AdvancedMetaEngine(Sci::SciGameDescriptions, sizeof(ADGameDescription), s_sciGameTitles) { + params.singleid = "sci"; + } virtual const char *getName() const { return "SCI [SCI0, SCI01, SCI10, SCI11" |