diff --git a/common/advancedDetector.cpp b/common/advancedDetector.cpp index cd46cfca1d7..463a3b62cae 100644 --- a/common/advancedDetector.cpp +++ b/common/advancedDetector.cpp @@ -170,7 +170,7 @@ GameList detectAllGames( desc["gameid"] = params.singleid; } - if (params.flags & kADFlagComplexID) { + if (params.flags & kADFlagAugmentPreferredTarget) { if (!desc.contains("preferredtarget")) desc["preferredtarget"] = desc["gameid"]; diff --git a/common/advancedDetector.h b/common/advancedDetector.h index 30481181c5d..abd974ff46b 100644 --- a/common/advancedDetector.h +++ b/common/advancedDetector.h @@ -67,7 +67,11 @@ struct ADObsoleteGameID { }; 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 }; diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index b9dad2580a8..192422014b9 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -1739,7 +1739,7 @@ static const Common::ADParams detectionParams = { // List of files for file-based fallback detection (optional) 0, // Flags - Common::kADFlagComplexID + Common::kADFlagAugmentPreferredTarget }; ADVANCED_DETECTOR_DEFINE_PLUGIN(AGI, Agi::AgiEngine, Agi::GAME_detectGames, detectionParams); diff --git a/engines/agos/game.cpp b/engines/agos/game.cpp index 8652cb726b2..071aae9fd32 100644 --- a/engines/agos/game.cpp +++ b/engines/agos/game.cpp @@ -98,7 +98,7 @@ static const Common::ADParams detectionParams = { // List of files for file-based fallback detection (optional) 0, // Flags - 0 + Common::kADFlagAugmentPreferredTarget }; ADVANCED_DETECTOR_DEFINE_PLUGIN(AGOS, AGOS::AGOSEngine, AGOS::GAME_detectGames, detectionParams); diff --git a/engines/cine/detection.cpp b/engines/cine/detection.cpp index ba4858fe776..21f81080613 100644 --- a/engines/cine/detection.cpp +++ b/engines/cine/detection.cpp @@ -483,7 +483,7 @@ static const Common::ADParams detectionParams = { // List of files for file-based fallback detection (optional) 0, // Flags - Common::kADFlagComplexID + Common::kADFlagAugmentPreferredTarget }; ADVANCED_DETECTOR_DEFINE_PLUGIN(CINE, Cine::CineEngine, Cine::GAME_detectGames, detectionParams); diff --git a/engines/gob/detection.cpp b/engines/gob/detection.cpp index 38af843a0f8..050dc5b7ddd 100644 --- a/engines/gob/detection.cpp +++ b/engines/gob/detection.cpp @@ -915,7 +915,7 @@ static const ADParams detectionParams = { // List of files for file-based fallback detection (optional) Gob::fileBased, // Flags - kADFlagComplexID | kADFlagFilebasedFallback + kADFlagAugmentPreferredTarget | kADFlagFilebasedFallback }; ADVANCED_DETECTOR_DEFINE_PLUGIN(GOB, Gob::GobEngine, Gob::GAME_detectGames, detectionParams); diff --git a/engines/parallaction/detection.cpp b/engines/parallaction/detection.cpp index 32b62e1d751..6624263b1de 100644 --- a/engines/parallaction/detection.cpp +++ b/engines/parallaction/detection.cpp @@ -97,7 +97,7 @@ static const Common::ADParams detectionParams = { // List of files for file-based fallback detection (optional) 0, // Flags - Common::kADFlagComplexID + Common::kADFlagAugmentPreferredTarget }; ADVANCED_DETECTOR_DEFINE_PLUGIN(PARALLACTION, Parallaction::Parallaction, Parallaction::GAME_detectGames, detectionParams); diff --git a/engines/saga/game.cpp b/engines/saga/game.cpp index 24dfd413989..aaec2dad2f5 100644 --- a/engines/saga/game.cpp +++ b/engines/saga/game.cpp @@ -117,7 +117,7 @@ static const Common::ADParams detectionParams = { // List of files for file-based fallback detection (optional) 0, // Flags - Common::kADFlagComplexID + Common::kADFlagAugmentPreferredTarget }; ADVANCED_DETECTOR_DEFINE_PLUGIN(SAGA, Saga::SagaEngine, Saga::GAME_detectGames, detectionParams);