From 6fb0d6e8e970c59b5f3cffaf12b2560d2687fdff Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 10 Jun 2011 15:53:55 +0200 Subject: SAGA: Switch to alternate AdvancedMetaEngine, avoid ADParams --- engines/saga/detection.cpp | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) (limited to 'engines') 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 [" -- cgit v1.2.3