Renamed kADFlagComplexID to kADFlagAugmentPreferredTarget, document it, and add it for AGOS, too

svn-id: r25543
This commit is contained in:
Max Horn 2007-02-13 13:17:46 +00:00
parent 287e21d36e
commit 2afe07992f
8 changed files with 12 additions and 8 deletions

View file

@ -170,7 +170,7 @@ GameList detectAllGames(
desc["gameid"] = params.singleid; desc["gameid"] = params.singleid;
} }
if (params.flags & kADFlagComplexID) { if (params.flags & kADFlagAugmentPreferredTarget) {
if (!desc.contains("preferredtarget")) if (!desc.contains("preferredtarget"))
desc["preferredtarget"] = desc["gameid"]; desc["preferredtarget"] = desc["gameid"];

View file

@ -67,7 +67,11 @@ struct ADObsoleteGameID {
}; };
enum ADFlags { enum ADFlags {
kADFlagComplexID = (1 << 0), // Generate complex suggested IDs /**
* Generate/augment preferred target with information on the language (if
* not equal to english) and platform (if not equal to PC).
*/
kADFlagAugmentPreferredTarget = (1 << 0),
kADFlagFilebasedFallback = (1 << 1) // Use file based fallback detection kADFlagFilebasedFallback = (1 << 1) // Use file based fallback detection
}; };

View file

@ -1739,7 +1739,7 @@ static const Common::ADParams detectionParams = {
// List of files for file-based fallback detection (optional) // List of files for file-based fallback detection (optional)
0, 0,
// Flags // Flags
Common::kADFlagComplexID Common::kADFlagAugmentPreferredTarget
}; };
ADVANCED_DETECTOR_DEFINE_PLUGIN(AGI, Agi::AgiEngine, Agi::GAME_detectGames, detectionParams); ADVANCED_DETECTOR_DEFINE_PLUGIN(AGI, Agi::AgiEngine, Agi::GAME_detectGames, detectionParams);

View file

@ -98,7 +98,7 @@ static const Common::ADParams detectionParams = {
// List of files for file-based fallback detection (optional) // List of files for file-based fallback detection (optional)
0, 0,
// Flags // Flags
0 Common::kADFlagAugmentPreferredTarget
}; };
ADVANCED_DETECTOR_DEFINE_PLUGIN(AGOS, AGOS::AGOSEngine, AGOS::GAME_detectGames, detectionParams); ADVANCED_DETECTOR_DEFINE_PLUGIN(AGOS, AGOS::AGOSEngine, AGOS::GAME_detectGames, detectionParams);

View file

@ -483,7 +483,7 @@ static const Common::ADParams detectionParams = {
// List of files for file-based fallback detection (optional) // List of files for file-based fallback detection (optional)
0, 0,
// Flags // Flags
Common::kADFlagComplexID Common::kADFlagAugmentPreferredTarget
}; };
ADVANCED_DETECTOR_DEFINE_PLUGIN(CINE, Cine::CineEngine, Cine::GAME_detectGames, detectionParams); ADVANCED_DETECTOR_DEFINE_PLUGIN(CINE, Cine::CineEngine, Cine::GAME_detectGames, detectionParams);

View file

@ -915,7 +915,7 @@ static const ADParams detectionParams = {
// List of files for file-based fallback detection (optional) // List of files for file-based fallback detection (optional)
Gob::fileBased, Gob::fileBased,
// Flags // Flags
kADFlagComplexID | kADFlagFilebasedFallback kADFlagAugmentPreferredTarget | kADFlagFilebasedFallback
}; };
ADVANCED_DETECTOR_DEFINE_PLUGIN(GOB, Gob::GobEngine, Gob::GAME_detectGames, detectionParams); ADVANCED_DETECTOR_DEFINE_PLUGIN(GOB, Gob::GobEngine, Gob::GAME_detectGames, detectionParams);

View file

@ -97,7 +97,7 @@ static const Common::ADParams detectionParams = {
// List of files for file-based fallback detection (optional) // List of files for file-based fallback detection (optional)
0, 0,
// Flags // Flags
Common::kADFlagComplexID Common::kADFlagAugmentPreferredTarget
}; };
ADVANCED_DETECTOR_DEFINE_PLUGIN(PARALLACTION, Parallaction::Parallaction, Parallaction::GAME_detectGames, detectionParams); ADVANCED_DETECTOR_DEFINE_PLUGIN(PARALLACTION, Parallaction::Parallaction, Parallaction::GAME_detectGames, detectionParams);

View file

@ -117,7 +117,7 @@ static const Common::ADParams detectionParams = {
// List of files for file-based fallback detection (optional) // List of files for file-based fallback detection (optional)
0, 0,
// Flags // Flags
Common::kADFlagComplexID Common::kADFlagAugmentPreferredTarget
}; };
ADVANCED_DETECTOR_DEFINE_PLUGIN(SAGA, Saga::SagaEngine, Saga::GAME_detectGames, detectionParams); ADVANCED_DETECTOR_DEFINE_PLUGIN(SAGA, Saga::SagaEngine, Saga::GAME_detectGames, detectionParams);