From 3c837a39f0e2b45cf357c22a40cd3592f6ab760f Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 10 Jun 2011 15:53:51 +0200 Subject: CINE: Switch to alternate AdvancedMetaEngine, avoid ADParams --- engines/cine/detection.cpp | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) (limited to 'engines') diff --git a/engines/cine/detection.cpp b/engines/cine/detection.cpp index 2e6e285df0..89c81c2599 100644 --- a/engines/cine/detection.cpp +++ b/engines/cine/detection.cpp @@ -60,34 +60,13 @@ static const ADObsoleteGameID obsoleteGameIDsTable[] = { #include "cine/detection_tables.h" -static const ADParams detectionParams = { - // Pointer to ADGameDescription or its superset structure - (const byte *)Cine::gameDescriptions, - // Size of that superset structure - sizeof(Cine::CINEGameDescription), - // Number of bytes to compute MD5 sum for - 5000, - // List of all engine gameid - cineGames, - // Structure for autoupgrading obsolete gameids - obsoleteGameIDsTable, - // Name of single gameid (optional) - "cine", - // List of files for file-based fallback detection (optional) - 0, - // Flags - 0, - // Additional GUI options (for every game} - Common::GUIO_NOSPEECH | Common::GUIO_NOMIDI, - // Maximum directory depth - 1, - // List of directory globs - 0 -}; - class CineMetaEngine : public AdvancedMetaEngine { public: - CineMetaEngine() : AdvancedMetaEngine(detectionParams) {} + CineMetaEngine() : AdvancedMetaEngine(Cine::gameDescriptions, sizeof(Cine::CINEGameDescription), cineGames) { + params.obsoleteList = obsoleteGameIDsTable; + params.singleid = "cine"; + params.guioptions = Common::GUIO_NOSPEECH | Common::GUIO_NOMIDI; + } virtual const char *getName() const { return "Cine"; -- cgit v1.2.3