Skip to content

Commit

Permalink
GOB: Switch to alternate AdvancedMetaEngine, avoid ADParams
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jun 10, 2011
1 parent ae75b97 commit a89f9ca
Showing 1 changed file with 6 additions and 26 deletions.
32 changes: 6 additions & 26 deletions engines/gob/detection.cpp
Expand Up @@ -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";
Expand Down

0 comments on commit a89f9ca

Please sign in to comment.