Skip to content

Commit

Permalink
GROOVIE: 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 a89f9ca commit 0d581ba
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions engines/groovie/detection.cpp
Expand Up @@ -202,35 +202,13 @@ static const GroovieGameDescription gameDescriptions[] = {
{AD_TABLE_END_MARKER, kGroovieT7G, 0}
};

static const ADParams detectionParams = {
// Pointer to ADGameDescription or its superset structure
(const byte *)gameDescriptions,
// Size of that superset structure
sizeof(GroovieGameDescription),
// Number of bytes to compute MD5 sum for
5000,
// List of all engine gameid
groovieGames,
// Structure for autoupgrading obsolete gameids
0,
// Name of single gameid (optional)
"groovie",
// List of files for file-based fallback detection (optional)
0,
// Flags
kADFlagUseExtraAsHint,
// Additional GUI options (for every game}
Common::GUIO_NOSUBTITLES | Common::GUIO_NOSFX,
// Maximum directory depth
1,
// List of directory globs
0
};


class GroovieMetaEngine : public AdvancedMetaEngine {
public:
GroovieMetaEngine() : AdvancedMetaEngine(detectionParams) {}
GroovieMetaEngine() : AdvancedMetaEngine(gameDescriptions, sizeof(GroovieGameDescription), groovieGames) {
params.singleid = "groovie";
params.flags = kADFlagUseExtraAsHint;
params.guioptions = Common::GUIO_NOSUBTITLES | Common::GUIO_NOSFX;
}

const char *getName() const {
return "Groovie";
Expand Down

0 comments on commit 0d581ba

Please sign in to comment.