Skip to content

Commit

Permalink
SCI: 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 6fb0d6e commit b99d76a
Showing 1 changed file with 3 additions and 27 deletions.
30 changes: 3 additions & 27 deletions engines/sci/detection.cpp
Expand Up @@ -371,35 +371,11 @@ static ADGameDescription s_fallbackDesc = {

static char s_fallbackGameIdBuf[256];


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

class SciMetaEngine : public AdvancedMetaEngine {
public:
SciMetaEngine() : AdvancedMetaEngine(detectionParams) {}
SciMetaEngine() : AdvancedMetaEngine(Sci::SciGameDescriptions, sizeof(ADGameDescription), s_sciGameTitles) {
params.singleid = "sci";
}

virtual const char *getName() const {
return "SCI [SCI0, SCI01, SCI10, SCI11"
Expand Down

0 comments on commit b99d76a

Please sign in to comment.