aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2011-06-10 15:53:55 +0200
committerMax Horn2011-06-10 22:15:44 +0200
commit6fb0d6e8e970c59b5f3cffaf12b2560d2687fdff (patch)
tree4ca767f11da9c5d05304d47a60897385278a2929 /engines
parent289ad6b541a3f83f0283dc68510d2aedde9e4c38 (diff)
downloadscummvm-rg350-6fb0d6e8e970c59b5f3cffaf12b2560d2687fdff.tar.gz
scummvm-rg350-6fb0d6e8e970c59b5f3cffaf12b2560d2687fdff.tar.bz2
scummvm-rg350-6fb0d6e8e970c59b5f3cffaf12b2560d2687fdff.zip
SAGA: Switch to alternate AdvancedMetaEngine, avoid ADParams
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/detection.cpp30
1 files changed, 4 insertions, 26 deletions
diff --git a/engines/saga/detection.cpp b/engines/saga/detection.cpp
index 4d1c89b0ec..ece90855b7 100644
--- a/engines/saga/detection.cpp
+++ b/engines/saga/detection.cpp
@@ -101,34 +101,12 @@ static const ADObsoleteGameID obsoleteGameIDsTable[] = {
#include "saga/detection_tables.h"
-static const ADParams detectionParams = {
- // Pointer to ADGameDescription or its superset structure
- (const byte *)Saga::gameDescriptions,
- // Size of that superset structure
- sizeof(Saga::SAGAGameDescription),
- // Number of bytes to compute MD5 sum for
- 5000,
- // List of all engine gameid
- sagaGames,
- // Structure for autoupgrading obsolete gameids
- obsoleteGameIDsTable,
- // Name of single gameid (optional)
- "saga",
- // 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 SagaMetaEngine : public AdvancedMetaEngine {
public:
- SagaMetaEngine() : AdvancedMetaEngine(detectionParams) {}
+ SagaMetaEngine() : AdvancedMetaEngine(Saga::gameDescriptions, sizeof(Saga::SAGAGameDescription), sagaGames) {
+ params.obsoleteList = obsoleteGameIDsTable;
+ params.singleid = "saga";
+ }
virtual const char *getName() const {
return "SAGA ["