Advanced detector: replaced kADFlagAugmentPreferredTarget by its inverse, kADFlagDontAugmentPreferredTarget (since all AdvDetector engines except Kyra used kADFlagAugmentPreferredTarget, it seems reasonable to assume that as default)
svn-id: r31413
This commit is contained in:
parent
bfdca912bc
commit
29f1e6de38
14 changed files with 14 additions and 14 deletions
|
@ -178,7 +178,7 @@ static void updateGameDescriptor(GameDescriptor &desc, const ADGameDescription *
|
|||
desc["gameid"] = params.singleid;
|
||||
}
|
||||
|
||||
if (params.flags & kADFlagAugmentPreferredTarget) {
|
||||
if (!(params.flags & kADFlagDontAugmentPreferredTarget)) {
|
||||
if (!desc.contains("preferredtarget"))
|
||||
desc["preferredtarget"] = desc["gameid"];
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ enum ADFlags {
|
|||
* Generate/augment preferred target with information on the language (if
|
||||
* not equal to english) and platform (if not equal to PC).
|
||||
*/
|
||||
kADFlagAugmentPreferredTarget = (1 << 0),
|
||||
kADFlagDontAugmentPreferredTarget = (1 << 0),
|
||||
kADFlagPrintWarningOnFileBasedFallback = (1 << 1),
|
||||
kADFlagUseExtraAsHint = (1 << 2)
|
||||
};
|
||||
|
|
|
@ -2085,7 +2085,7 @@ static const Common::ADParams detectionParams = {
|
|||
// List of files for file-based fallback detection (optional)
|
||||
0,
|
||||
// Flags
|
||||
Common::kADFlagAugmentPreferredTarget
|
||||
0
|
||||
};
|
||||
|
||||
} // End of namespace Agi
|
||||
|
|
|
@ -94,7 +94,7 @@ static const Common::ADParams detectionParams = {
|
|||
// List of files for file-based fallback detection (optional)
|
||||
0,
|
||||
// Flags
|
||||
Common::kADFlagAugmentPreferredTarget
|
||||
0
|
||||
};
|
||||
|
||||
class AgosMetaEngine : public Common::AdvancedMetaEngine {
|
||||
|
|
|
@ -483,7 +483,7 @@ static const Common::ADParams detectionParams = {
|
|||
// List of files for file-based fallback detection (optional)
|
||||
0,
|
||||
// Flags
|
||||
Common::kADFlagAugmentPreferredTarget
|
||||
0
|
||||
};
|
||||
|
||||
class CineMetaEngine : public Common::AdvancedMetaEngine {
|
||||
|
|
|
@ -118,7 +118,7 @@ static const Common::ADParams detectionParams = {
|
|||
// List of files for file-based fallback detection (optional)
|
||||
0,
|
||||
// Flags
|
||||
Common::kADFlagAugmentPreferredTarget
|
||||
0
|
||||
};
|
||||
|
||||
class CruiseMetaEngine : public Common::AdvancedMetaEngine {
|
||||
|
|
|
@ -142,7 +142,7 @@ static const Common::ADParams detectionParams = {
|
|||
// List of files for file-based fallback detection (optional)
|
||||
0,
|
||||
// Flags
|
||||
Common::kADFlagAugmentPreferredTarget
|
||||
0
|
||||
};
|
||||
|
||||
class DrasculaMetaEngine : public Common::AdvancedMetaEngine {
|
||||
|
|
|
@ -1867,7 +1867,7 @@ static const ADParams detectionParams = {
|
|||
// List of files for file-based fallback detection (optional)
|
||||
Gob::fileBased,
|
||||
// Flags
|
||||
kADFlagAugmentPreferredTarget
|
||||
0
|
||||
};
|
||||
|
||||
class GobMetaEngine : public Common::AdvancedMetaEngine {
|
||||
|
|
|
@ -101,7 +101,7 @@ static const Common::ADParams igorDetectionParams = {
|
|||
0,
|
||||
"igor",
|
||||
0,
|
||||
Common::kADFlagAugmentPreferredTarget
|
||||
0
|
||||
};
|
||||
|
||||
class IgorMetaEngine : public Common::AdvancedMetaEngine {
|
||||
|
|
|
@ -437,7 +437,7 @@ const Common::ADParams detectionParams = {
|
|||
// List of files for file-based fallback detection (optional)
|
||||
0,
|
||||
// Flags
|
||||
0
|
||||
Common::kADFlagDontAugmentPreferredTarget
|
||||
};
|
||||
|
||||
} // End of anonymous namespace
|
||||
|
|
|
@ -169,7 +169,7 @@ static const Common::ADParams detectionParams = {
|
|||
// List of files for file-based fallback detection (optional)
|
||||
0,
|
||||
// Flags
|
||||
Common::kADFlagAugmentPreferredTarget | Common::kADFlagUseExtraAsHint
|
||||
Common::kADFlagUseExtraAsHint
|
||||
};
|
||||
|
||||
class LureMetaEngine : public Common::AdvancedMetaEngine {
|
||||
|
|
|
@ -179,7 +179,7 @@ static const Common::ADParams detectionParams = {
|
|||
// List of files for file-based fallback detection (optional)
|
||||
0,
|
||||
// Flags
|
||||
Common::kADFlagAugmentPreferredTarget
|
||||
0
|
||||
};
|
||||
|
||||
class ParallactionMetaEngine : public Common::AdvancedMetaEngine {
|
||||
|
|
|
@ -136,7 +136,7 @@ static const Common::ADParams detectionParams = {
|
|||
// List of files for file-based fallback detection (optional)
|
||||
0,
|
||||
// Flags
|
||||
Common::kADFlagAugmentPreferredTarget
|
||||
0
|
||||
};
|
||||
|
||||
class SagaMetaEngine : public Common::AdvancedMetaEngine {
|
||||
|
|
|
@ -120,7 +120,7 @@ static const Common::ADParams detectionParams = {
|
|||
0, // no obsolete targets data
|
||||
"touche",
|
||||
Touche::fileBasedFallback, // file-based detection data to enable not yet known versions to start
|
||||
Common::kADFlagAugmentPreferredTarget | Common::kADFlagPrintWarningOnFileBasedFallback
|
||||
Common::kADFlagPrintWarningOnFileBasedFallback
|
||||
};
|
||||
|
||||
class ToucheMetaEngine : public Common::AdvancedMetaEngine {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue