aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2011-06-10 15:53:50 +0200
committerMax Horn2011-06-10 22:15:40 +0200
commita9b49fbc66d4420e252500ac8316e632f53d2075 (patch)
tree57b5d775367fe8cfff688873e66f77a8abf19998 /engines
parentb7d9e433bfd93dbc91caa6759eafd3615d615b2e (diff)
downloadscummvm-rg350-a9b49fbc66d4420e252500ac8316e632f53d2075.tar.gz
scummvm-rg350-a9b49fbc66d4420e252500ac8316e632f53d2075.tar.bz2
scummvm-rg350-a9b49fbc66d4420e252500ac8316e632f53d2075.zip
AGI: Switch to alternate AdvancedMetaEngine, avoid ADParams
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/detection.cpp30
1 files changed, 4 insertions, 26 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp
index 1d0f6c3fd3..b0e055edcc 100644
--- a/engines/agi/detection.cpp
+++ b/engines/agi/detection.cpp
@@ -129,31 +129,6 @@ static const PlainGameDescriptor agiGames[] = {
#include "agi/detection_tables.h"
-static const ADParams detectionParams = {
- // Pointer to ADGameDescription or its superset structure
- (const byte *)Agi::gameDescriptions,
- // Size of that superset structure
- sizeof(Agi::AGIGameDescription),
- // Number of bytes to compute MD5 sum for
- 5000,
- // List of all engine gameid
- agiGames,
- // Structure for autoupgrading obsolete gameids
- 0,
- // Name of single gameid (optional)
- "agi",
- // List of files for file-based fallback detection (optional)
- 0,
- // Flags
- 0,
- // Additional GUI options (for every game}
- Common::GUIO_NOSPEECH,
- // Maximum directory depth
- 1,
- // List of directory globs
- 0
-};
-
using namespace Agi;
class AgiMetaEngine : public AdvancedMetaEngine {
@@ -161,7 +136,10 @@ class AgiMetaEngine : public AdvancedMetaEngine {
mutable Common::String _extra;
public:
- AgiMetaEngine() : AdvancedMetaEngine(detectionParams) {}
+ AgiMetaEngine() : AdvancedMetaEngine(Agi::gameDescriptions, sizeof(Agi::AGIGameDescription), agiGames) {
+ params.singleid = "agi";
+ params.guioptions = Common::GUIO_NOSPEECH;
+ }
virtual const char *getName() const {
return "AGI preAGI + v2 + v3";