diff options
Diffstat (limited to 'engines/cge/detection.cpp')
-rw-r--r-- | engines/cge/detection.cpp | 33 |
1 files changed, 7 insertions, 26 deletions
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"; |