Add more paramteres to AdvancedDetector. Not used yet.

svn-id: r25241
This commit is contained in:
Eugene Sandulenko 2007-01-28 07:31:26 +00:00
parent b8a48f5751
commit 93687d376b
7 changed files with 39 additions and 6 deletions

View File

@ -51,6 +51,10 @@ struct ADObsoleteGameID {
Common::Platform platform;
};
enum ADFlags {
kADFlagComplexID = (1 << 0) // Generate complex suggested IDs
};
struct ADParams {
// Pointer to ADGameDescription or its superset structure
const byte *descs;
@ -60,14 +64,19 @@ struct ADParams {
const int md5Bytes;
// List of all engine targets
const PlainGameDescriptor *list;
// Structure for autoupgrading obsolete targets
// Structure for autoupgrading obsolete targets (optional)
const Common::ADObsoleteGameID *obsoleteList;
// Name of single gameid (optional)
const char *singleid;
// Flags
const uint32 flags;
};
typedef Array<int> ADList;
typedef Array<const ADGameDescription*> ADGameDescList;
#define AD_ENTRY1(f, x) {{ f, 0, x, -1}, {NULL, 0, NULL, 0}}
#define AD_ENTRY1s(f, x, s) {{ f, 0, x, s}, {NULL, 0, NULL, 0}}
namespace AdvancedDetector {

View File

@ -971,7 +971,11 @@ static const Common::ADParams detectionParams = {
// List of all engine targets
agiGames,
// Structure for autoupgrading obsolete targets
0
0,
// Name of single gameid (optional)
"agi",
// Flags
Common::kADFlagComplexID
};
ADVANCED_DETECTOR_DEFINE_PLUGIN(AGI, Agi::AgiEngine, Agi::GAME_detectGames, detectionParams);

View File

@ -92,7 +92,11 @@ static const Common::ADParams detectionParams = {
// List of all engine targets
simonGames,
// Structure for autoupgrading obsolete targets
obsoleteGameIDsTable
obsoleteGameIDsTable,
// Name of single gameid (optional)
0,
// Flags
0
};
ADVANCED_DETECTOR_DEFINE_PLUGIN(AGOS, AGOS::AGOSEngine, AGOS::GAME_detectGames, detectionParams);

View File

@ -440,7 +440,11 @@ static const Common::ADParams detectionParams = {
// List of all engine targets
cineGames,
// Structure for autoupgrading obsolete targets
0
0,
// Name of single gameid (optional)
"cine",
// Flags
Common::kADFlagComplexID
};
ADVANCED_DETECTOR_DEFINE_PLUGIN(CINE, Cine::CineEngine, Cine::GAME_detectGames, detectionParams);

View File

@ -88,6 +88,10 @@ const Common::ADParams detectionParams = {
// List of all engine targets
gameList,
// Structure for autoupgrading obsolete targets
0,
// Name of single gameid (optional)
0,
// Flags
0
};

View File

@ -89,7 +89,11 @@ static const Common::ADParams detectionParams = {
// List of all engine targets
parallactionGames,
// Structure for autoupgrading obsolete targets
0
0,
// Name of single gameid (optional)
"parallaction",
// Flags
Common::kADFlagComplexID
};
ADVANCED_DETECTOR_DEFINE_PLUGIN(PARALLACTION, Parallaction::Parallaction, Parallaction::GAME_detectGames, detectionParams);

View File

@ -104,7 +104,11 @@ static const Common::ADParams detectionParams = {
// List of all engine targets
sagaGames,
// Structure for autoupgrading obsolete targets
0
0,
// Name of single gameid (optional)
"saga",
// Flags
Common::kADFlagComplexID
};
ADVANCED_DETECTOR_DEFINE_PLUGIN(SAGA, Saga::SagaEngine, Saga::GAME_detectGames, detectionParams);