aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/detection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/draci/detection.cpp')
-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";