From a89f9ca31cf913125f0310f09f48b1264e51be7b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 10 Jun 2011 15:53:52 +0200 Subject: GOB: Switch to alternate AdvancedMetaEngine, avoid ADParams --- engines/gob/detection.cpp | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) (limited to 'engines') diff --git a/engines/gob/detection.cpp b/engines/gob/detection.cpp index fc0915e095..2ecd6b741e 100644 --- a/engines/gob/detection.cpp +++ b/engines/gob/detection.cpp @@ -86,34 +86,14 @@ static const ADObsoleteGameID obsoleteGameIDsTable[] = { #include "gob/detection_tables.h" -static const ADParams detectionParams = { - // Pointer to ADGameDescription or its superset structure - (const byte *)Gob::gameDescriptions, - // Size of that superset structure - sizeof(Gob::GOBGameDescription), - // Number of bytes to compute MD5 sum for - 5000, - // List of all engine gameid - gobGames, - // Structure for autoupgrading obsolete gameids - obsoleteGameIDsTable, - // Name of single gameid (optional) - "gob", - // List of files for file-based fallback detection (optional) - Gob::fileBased, - // Flags - 0, - // Additional GUI options (for every game} - Common::GUIO_NOLAUNCHLOAD, - // Maximum directory depth - 1, - // List of directory globs - 0 -}; - class GobMetaEngine : public AdvancedMetaEngine { public: - GobMetaEngine() : AdvancedMetaEngine(detectionParams) {} + GobMetaEngine() : AdvancedMetaEngine(Gob::gameDescriptions, sizeof(Gob::GOBGameDescription), gobGames) { + params.obsoleteList = obsoleteGameIDsTable; + params.singleid = "gob"; + params.fileBasedFallback = Gob::fileBased; + params.guioptions = Common::GUIO_NOLAUNCHLOAD; + } virtual const char *getName() const { return "Gob"; -- cgit v1.2.3