mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-22 12:12:16 +00:00
TOUCHE: Switch to alternate AdvancedMetaEngine, avoid ADParams
This commit is contained in:
parent
5e90393697
commit
3b6610927b
@ -126,35 +126,16 @@ static const char *directoryGlobs[] = {
|
|||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ADParams detectionParams = {
|
|
||||||
// Pointer to ADGameDescription or its superset structure
|
|
||||||
(const byte *)Touche::gameDescriptions,
|
|
||||||
// Size of that superset structure
|
|
||||||
sizeof(ADGameDescription),
|
|
||||||
// Number of bytes to compute MD5 sum for
|
|
||||||
4096,
|
|
||||||
// List of all engine gameid
|
|
||||||
toucheGames,
|
|
||||||
// Structure for autoupgrading obsolete gameids
|
|
||||||
0,
|
|
||||||
// Name of single gameid (optional)
|
|
||||||
"touche",
|
|
||||||
// List of files for file-based fallback detection (optional)
|
|
||||||
Touche::fileBasedFallback,
|
|
||||||
// Flags
|
|
||||||
kADFlagPrintWarningOnFileBasedFallback,
|
|
||||||
// Additional GUI options (for every game}
|
|
||||||
Common::GUIO_NONE,
|
|
||||||
// Maximum directory depth
|
|
||||||
2,
|
|
||||||
// List of directory globs
|
|
||||||
directoryGlobs
|
|
||||||
};
|
|
||||||
|
|
||||||
class ToucheMetaEngine : public AdvancedMetaEngine {
|
class ToucheMetaEngine : public AdvancedMetaEngine {
|
||||||
public:
|
public:
|
||||||
ToucheMetaEngine() : AdvancedMetaEngine(detectionParams) {}
|
ToucheMetaEngine() : AdvancedMetaEngine(Touche::gameDescriptions, sizeof(ADGameDescription), toucheGames) {
|
||||||
|
params.md5Bytes = 4096;
|
||||||
|
params.singleid = "touche";
|
||||||
|
params.fileBasedFallback = Touche::fileBasedFallback;
|
||||||
|
params.flags = kADFlagPrintWarningOnFileBasedFallback;
|
||||||
|
params.depth = 2;
|
||||||
|
params.directoryGlobs = directoryGlobs;
|
||||||
|
}
|
||||||
virtual const char *getName() const {
|
virtual const char *getName() const {
|
||||||
return "Touche";
|
return "Touche";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user