diff options
author | Max Horn | 2011-06-10 15:53:52 +0200 |
---|---|---|
committer | Max Horn | 2011-06-10 22:15:42 +0200 |
commit | a89f9ca31cf913125f0310f09f48b1264e51be7b (patch) | |
tree | b44afe18acff61631854d5bb8f8a42ba29b962c0 /engines | |
parent | ae75b9780c30d641591517862f6b2d60ff51f686 (diff) | |
download | scummvm-rg350-a89f9ca31cf913125f0310f09f48b1264e51be7b.tar.gz scummvm-rg350-a89f9ca31cf913125f0310f09f48b1264e51be7b.tar.bz2 scummvm-rg350-a89f9ca31cf913125f0310f09f48b1264e51be7b.zip |
GOB: Switch to alternate AdvancedMetaEngine, avoid ADParams
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gob/detection.cpp | 32 |
1 files changed, 6 insertions, 26 deletions
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"; |