mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-26 22:38:17 +00:00
DRACI: Switch to alternate AdvancedMetaEngine, avoid ADParams
This commit is contained in:
parent
446e602840
commit
8174f7d521
@ -83,34 +83,11 @@ const ADGameDescription gameDescriptions[] = {
|
||||
|
||||
} // End of namespace Draci
|
||||
|
||||
static const ADParams detectionParams = {
|
||||
// Pointer to ADGameDescription or its superset structure
|
||||
(const byte *)Draci::gameDescriptions,
|
||||
// Size of that superset structure
|
||||
sizeof(ADGameDescription),
|
||||
// Number of bytes to compute MD5 sum for
|
||||
5000,
|
||||
// List of all engine gameid
|
||||
draciGames,
|
||||
// Structure for autoupgrading obsolete gameids
|
||||
0,
|
||||
// Name of single gameid (optional)
|
||||
"draci",
|
||||
// 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 DraciMetaEngine : public AdvancedMetaEngine {
|
||||
public:
|
||||
DraciMetaEngine() : AdvancedMetaEngine(detectionParams) {}
|
||||
DraciMetaEngine() : AdvancedMetaEngine(Draci::gameDescriptions, sizeof(ADGameDescription), draciGames) {
|
||||
params.singleid = "draci";
|
||||
}
|
||||
|
||||
virtual const char *getName() const {
|
||||
return "Draci";
|
||||
|
Loading…
x
Reference in New Issue
Block a user