diff options
author | Strangerke | 2011-06-29 09:57:16 +0200 |
---|---|---|
committer | Strangerke | 2011-06-29 14:29:49 +0200 |
commit | 91dc5f424aa474001ac85d600cd22aff54e317c4 (patch) | |
tree | a8dd338386fb9c254262642df06ab50ef20a2d48 /engines/cge/detection.cpp | |
parent | e1b6bc042752f2a07a6cb0911d11bf52ed26d9a8 (diff) | |
download | scummvm-rg350-91dc5f424aa474001ac85d600cd22aff54e317c4.tar.gz scummvm-rg350-91dc5f424aa474001ac85d600cd22aff54e317c4.tar.bz2 scummvm-rg350-91dc5f424aa474001ac85d600cd22aff54e317c4.zip |
CGE: Misc cleanup (provided by Digitall)
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"; |