AGI: Switch to alternate AdvancedMetaEngine, avoid ADParams
This commit is contained in:
parent
b7d9e433bf
commit
a9b49fbc66
1 changed files with 4 additions and 26 deletions
|
@ -129,31 +129,6 @@ static const PlainGameDescriptor agiGames[] = {
|
||||||
|
|
||||||
#include "agi/detection_tables.h"
|
#include "agi/detection_tables.h"
|
||||||
|
|
||||||
static const ADParams detectionParams = {
|
|
||||||
// Pointer to ADGameDescription or its superset structure
|
|
||||||
(const byte *)Agi::gameDescriptions,
|
|
||||||
// Size of that superset structure
|
|
||||||
sizeof(Agi::AGIGameDescription),
|
|
||||||
// Number of bytes to compute MD5 sum for
|
|
||||||
5000,
|
|
||||||
// List of all engine gameid
|
|
||||||
agiGames,
|
|
||||||
// Structure for autoupgrading obsolete gameids
|
|
||||||
0,
|
|
||||||
// Name of single gameid (optional)
|
|
||||||
"agi",
|
|
||||||
// List of files for file-based fallback detection (optional)
|
|
||||||
0,
|
|
||||||
// Flags
|
|
||||||
0,
|
|
||||||
// Additional GUI options (for every game}
|
|
||||||
Common::GUIO_NOSPEECH,
|
|
||||||
// Maximum directory depth
|
|
||||||
1,
|
|
||||||
// List of directory globs
|
|
||||||
0
|
|
||||||
};
|
|
||||||
|
|
||||||
using namespace Agi;
|
using namespace Agi;
|
||||||
|
|
||||||
class AgiMetaEngine : public AdvancedMetaEngine {
|
class AgiMetaEngine : public AdvancedMetaEngine {
|
||||||
|
@ -161,7 +136,10 @@ class AgiMetaEngine : public AdvancedMetaEngine {
|
||||||
mutable Common::String _extra;
|
mutable Common::String _extra;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AgiMetaEngine() : AdvancedMetaEngine(detectionParams) {}
|
AgiMetaEngine() : AdvancedMetaEngine(Agi::gameDescriptions, sizeof(Agi::AGIGameDescription), agiGames) {
|
||||||
|
params.singleid = "agi";
|
||||||
|
params.guioptions = Common::GUIO_NOSPEECH;
|
||||||
|
}
|
||||||
|
|
||||||
virtual const char *getName() const {
|
virtual const char *getName() const {
|
||||||
return "AGI preAGI + v2 + v3";
|
return "AGI preAGI + v2 + v3";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue