MOHAWK: Switch to alternate AdvancedMetaEngine, avoid ADParams

This commit is contained in:
Max Horn 2011-06-10 15:53:54 +02:00
parent 97f82b5a93
commit b1965f9a3f

View File

@ -158,35 +158,14 @@ static const char *directoryGlobs[] = {
0
};
static const ADParams detectionParams = {
// Pointer to ADGameDescription or its superset structure
(const byte *)Mohawk::gameDescriptions,
// Size of that superset structure
sizeof(Mohawk::MohawkGameDescription),
// Number of bytes to compute MD5 sum for
5000,
// List of all engine gameid
mohawkGames,
// Structure for autoupgrading obsolete gameids
0,
// Name of single gameid (optional)
"mohawk",
// List of files for file-based fallback detection (optional)
Mohawk::fileBased,
// Flags
0,
// Additional GUI options (for every game)
Common::GUIO_NONE,
// Maximum directory depth
2,
// List of directory globs
directoryGlobs
};
class MohawkMetaEngine : public AdvancedMetaEngine {
public:
MohawkMetaEngine() : AdvancedMetaEngine(detectionParams) {}
MohawkMetaEngine() : AdvancedMetaEngine(Mohawk::gameDescriptions, sizeof(Mohawk::MohawkGameDescription), mohawkGames) {
params.singleid = "mohawk";
params.fileBasedFallback = Mohawk::fileBased;
params.depth = 2;
params.directoryGlobs = directoryGlobs;
}
virtual const char *getName() const {
return "Mohawk";
}