Renamed kADFlagComplexID to kADFlagAugmentPreferredTarget, document it, and add it for AGOS, too
svn-id: r25543
This commit is contained in:
parent
287e21d36e
commit
2afe07992f
8 changed files with 12 additions and 8 deletions
|
@ -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"];
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue