Skip to content

Commit

Permalink
PARALLACTION: 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 b1965f9 commit 289ad6b
Showing 1 changed file with 3 additions and 26 deletions.
29 changes: 3 additions & 26 deletions engines/parallaction/detection.cpp
Expand Up @@ -220,34 +220,11 @@ static const PARALLACTIONGameDescription gameDescriptions[] = {

}

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

class ParallactionMetaEngine : public AdvancedMetaEngine {
public:
ParallactionMetaEngine() : AdvancedMetaEngine(detectionParams) {}
ParallactionMetaEngine() : AdvancedMetaEngine(Parallaction::gameDescriptions, sizeof(Parallaction::PARALLACTIONGameDescription), parallactionGames) {
params.guioptions = Common::GUIO_NOLAUNCHLOAD;
}

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

0 comments on commit 289ad6b

Please sign in to comment.