mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 12:22:51 +00:00
MOHAWK: Switch to alternate AdvancedMetaEngine, avoid ADParams
This commit is contained in:
parent
97f82b5a93
commit
b1965f9a3f
@ -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";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user