Skip to content

Commit

Permalink
PEGASUS: Update detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops committed Jun 13, 2011
1 parent d355475 commit 5e7acc8
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions engines/pegasus/detection.cpp
Expand Up @@ -83,37 +83,15 @@ static const PegasusGameDescription gameDescriptions[] = {

} // End of namespace Pegasus

static const ADParams detectionParams = {
// Pointer to ADGameDescription or its superset structure
(const byte *)Pegasus::gameDescriptions,
// Size of that superset structure
sizeof(Pegasus::PegasusGameDescription),
// Number of bytes to compute MD5 sum for
5000,
// List of all engine targets
pegasusGames,
// Structure for autoupgrading obsolete targets
0,
// Name of single gameid (optional)
"pegasus",
// 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 PegasusMetaEngine : public AdvancedMetaEngine {
public:
PegasusMetaEngine() : AdvancedMetaEngine(detectionParams) {}
PegasusMetaEngine() : AdvancedMetaEngine(Pegasus::gameDescriptions, sizeof(Pegasus::PegasusGameDescription), pegasusGames) {
params.singleid = "pegasus";
}

virtual const char *getName() const {
return "Pegasus Prime Engine";
return "The Journeyman Project: Pegasus Prime";
}

virtual const char *getOriginalCopyright() const {
Expand Down

0 comments on commit 5e7acc8

Please sign in to comment.