aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2011-06-10 15:53:53 +0200
committerMax Horn2011-06-10 22:15:42 +0200
commita29bc37eee030533bafbae32a253f2ad8dabadde (patch)
treedff7ab46d1ca3471d5a22cdf623f8ea94f5f8110 /engines
parent39aa627083ef0a6654909930e42bc1f8f6de4a28 (diff)
downloadscummvm-rg350-a29bc37eee030533bafbae32a253f2ad8dabadde.tar.gz
scummvm-rg350-a29bc37eee030533bafbae32a253f2ad8dabadde.tar.bz2
scummvm-rg350-a29bc37eee030533bafbae32a253f2ad8dabadde.zip
KYRA: Switch to alternate AdvancedMetaEngine, avoid ADParams
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/detection.cpp32
1 files changed, 5 insertions, 27 deletions
diff --git a/engines/kyra/detection.cpp b/engines/kyra/detection.cpp
index 6f2dcb52d7..6589c2b45b 100644
--- a/engines/kyra/detection.cpp
+++ b/engines/kyra/detection.cpp
@@ -47,37 +47,15 @@ const char * const directoryGlobs[] = {
0
};
-static const ADParams detectionParams = {
- // Pointer to ADGameDescription or its superset structure
- (const byte *)adGameDescs,
- // Size of that superset structure
- sizeof(KYRAGameDescription),
- // Number of bytes to compute MD5 sum for
- 1024 * 1024,
- // List of all engine gameid
- gameList,
- // 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
- 2,
- // List of directory globs
- directoryGlobs
-};
-
} // End of anonymous namespace
class KyraMetaEngine : public AdvancedMetaEngine {
public:
- KyraMetaEngine() : AdvancedMetaEngine(detectionParams) {}
-
+ KyraMetaEngine() : AdvancedMetaEngine(adGameDescs, sizeof(KYRAGameDescription), gameList) {
+ params.md5Bytes = 1024 * 1024;
+ params.depth = 2;
+ params.directoryGlobs = directoryGlobs;
+ }
const char *getName() const {
return "Kyra";
}