aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-01 21:17:00 +0000
committerEugene Sandulenko2010-08-01 21:17:00 +0000
commit7c5c3faae2b1d54887059bc29e3d8515648f1837 (patch)
tree0563877124b017279a806354a59da68cc48527db
parent00e67c1f86ad5b6de203a9168f152bdc7f9e9a44 (diff)
downloadscummvm-rg350-7c5c3faae2b1d54887059bc29e3d8515648f1837.tar.gz
scummvm-rg350-7c5c3faae2b1d54887059bc29e3d8515648f1837.tar.bz2
scummvm-rg350-7c5c3faae2b1d54887059bc29e3d8515648f1837.zip
AdvancedDetector: Introduce new flag GF_ADDENGLISH
It is convenient for localized games which always have English as fallback, thus English will be selectable from GUI. svn-id: r51593
-rw-r--r--engines/advancedDetector.cpp3
-rw-r--r--engines/advancedDetector.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index 315763a6da..61e6a9de73 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -209,6 +209,9 @@ static void updateGameDescriptor(GameDescriptor &desc, const ADGameDescription *
desc.setGUIOptions(realDesc->guioptions | params.guioptions);
desc.appendGUIOptions(getGameGUIOptionsDescriptionLanguage(realDesc->language));
+
+ if (realDesc->flags & ADGF_ADDENGLISH)
+ desc.appendGUIOptions(getGameGUIOptionsDescriptionLanguage(Common::EN_ANY));
}
GameList AdvancedMetaEngine::detectGames(const Common::FSList &fslist) const {
diff --git a/engines/advancedDetector.h b/engines/advancedDetector.h
index 94c346813c..1e59df04bf 100644
--- a/engines/advancedDetector.h
+++ b/engines/advancedDetector.h
@@ -45,6 +45,7 @@ struct ADGameFileDescription {
enum ADGameFlags {
ADGF_NO_FLAGS = 0,
+ ADGF_ADDENGLISH = (1 << 24), // always add English as language option
ADGF_MACRESFORK = (1 << 25), // the md5 for this entry will be calculated from the resource fork
ADGF_USEEXTRAASTITLE = (1 << 26), // Extra field value will be used as main game title, not gameid
ADGF_KEEPMATCH = (1 << 27), // this entry is kept even when there are matched entries with more files