aboutsummaryrefslogtreecommitdiff
path: root/engines/draci
diff options
context:
space:
mode:
authorMax Horn2011-06-10 15:53:52 +0200
committerMax Horn2011-06-10 22:15:41 +0200
commit8174f7d5215cc7b2d85f66fde56803d25f25796a (patch)
tree0a645b7da57aba17c578858015ba4dc57bc2fee6 /engines/draci
parent446e6028409259f55691146c80070fb6a57a8640 (diff)
downloadscummvm-rg350-8174f7d5215cc7b2d85f66fde56803d25f25796a.tar.gz
scummvm-rg350-8174f7d5215cc7b2d85f66fde56803d25f25796a.tar.bz2
scummvm-rg350-8174f7d5215cc7b2d85f66fde56803d25f25796a.zip
DRACI: Switch to alternate AdvancedMetaEngine, avoid ADParams
Diffstat (limited to 'engines/draci')
-rw-r--r--engines/draci/detection.cpp29
1 files changed, 3 insertions, 26 deletions
diff --git a/engines/draci/detection.cpp b/engines/draci/detection.cpp
index 0b2a0bd7e9..cf0413ffa9 100644
--- a/engines/draci/detection.cpp
+++ b/engines/draci/detection.cpp
@@ -83,34 +83,11 @@ const ADGameDescription gameDescriptions[] = {
} // End of namespace Draci
-static const ADParams detectionParams = {
- // Pointer to ADGameDescription or its superset structure
- (const byte *)Draci::gameDescriptions,
- // Size of that superset structure
- sizeof(ADGameDescription),
- // Number of bytes to compute MD5 sum for
- 5000,
- // List of all engine gameid
- draciGames,
- // Structure for autoupgrading obsolete gameids
- 0,
- // Name of single gameid (optional)
- "draci",
- // 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 DraciMetaEngine : public AdvancedMetaEngine {
public:
- DraciMetaEngine() : AdvancedMetaEngine(detectionParams) {}
+ DraciMetaEngine() : AdvancedMetaEngine(Draci::gameDescriptions, sizeof(ADGameDescription), draciGames) {
+ params.singleid = "draci";
+ }
virtual const char *getName() const {
return "Draci";