From 91dc5f424aa474001ac85d600cd22aff54e317c4 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 29 Jun 2011 09:57:16 +0200 Subject: CGE: Misc cleanup (provided by Digitall) --- engines/cge/detection.cpp | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) (limited to 'engines/cge/detection.cpp') diff --git a/engines/cge/detection.cpp b/engines/cge/detection.cpp index f03a42fb35..31bf629fcf 100644 --- a/engines/cge/detection.cpp +++ b/engines/cge/detection.cpp @@ -85,34 +85,15 @@ static const ADFileBasedFallback fileBasedFallback[] = { } // End of namespace CGE -static const ADParams detectionParams = { - // Pointer to ADGameDescription or its superset structure - (const byte *)CGE::gameDescriptions, - // Size of that superset structure - sizeof(ADGameDescription), - // Number of bytes to compute MD5 sum for - 5000, - // List of all engine targets - CGEGames, - // Structure for autoupgrading obsolete targets - 0, - // Name of single gameid (optional) - "Soltys", - // List of files for file-based fallback detection (optional) - CGE::fileBasedFallback, - // Flags - 0, - // Additional GUI options (for every game} - Common::GUIO_NONE, - // Maximum directory depth - 0, - // List of directory globs - NULL -}; - class CGEMetaEngine : public AdvancedMetaEngine { public: - CGEMetaEngine() : AdvancedMetaEngine(detectionParams) {} + CGEMetaEngine() : AdvancedMetaEngine(CGE::gameDescriptions, sizeof(ADGameDescription), CGEGames) { + _singleid = "Soltys"; + } + + virtual const ADGameDescription *fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const { + return detectGameFilebased(allFiles, CGE::fileBasedFallback); + } virtual const char *getName() const { return "CGE"; -- cgit v1.2.3