mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-15 16:58:01 +00:00
M4: Switch to alternate AdvancedMetaEngine, avoid ADParams
This commit is contained in:
parent
3491bf5b78
commit
dec7df0f16
@ -384,34 +384,14 @@ static const char *directoryGlobs[] = {
|
|||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ADParams detectionParams = {
|
|
||||||
// Pointer to ADGameDescription or its superset structure
|
|
||||||
(const byte *)M4::gameDescriptions,
|
|
||||||
// Size of that superset structure
|
|
||||||
sizeof(M4::M4GameDescription),
|
|
||||||
// Number of bytes to compute MD5 sum for
|
|
||||||
5000,
|
|
||||||
// List of all engine gameid
|
|
||||||
m4Games,
|
|
||||||
// Structure for autoupgrading obsolete gameids
|
|
||||||
0,
|
|
||||||
// Name of single gameid (optional)
|
|
||||||
"m4",
|
|
||||||
// List of files for file-based fallback detection (optional)
|
|
||||||
0,
|
|
||||||
// Flags
|
|
||||||
0,
|
|
||||||
// Additional GUI options (for every game}
|
|
||||||
Common::GUIO_NOMIDI,
|
|
||||||
// Maximum directory depth
|
|
||||||
2,
|
|
||||||
// List of directory globs
|
|
||||||
directoryGlobs
|
|
||||||
};
|
|
||||||
|
|
||||||
class M4MetaEngine : public AdvancedMetaEngine {
|
class M4MetaEngine : public AdvancedMetaEngine {
|
||||||
public:
|
public:
|
||||||
M4MetaEngine() : AdvancedMetaEngine(detectionParams) {}
|
M4MetaEngine() : AdvancedMetaEngine(M4::gameDescriptions, sizeof(M4::M4GameDescription), m4Games) {
|
||||||
|
params.singleid = "m4";
|
||||||
|
params.guioptions = Common::GUIO_NOMIDI;
|
||||||
|
params.depth = 2;
|
||||||
|
params.directoryGlobs = directoryGlobs;
|
||||||
|
}
|
||||||
|
|
||||||
virtual const char *getName() const {
|
virtual const char *getName() const {
|
||||||
return "MADS/M4";
|
return "MADS/M4";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user