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
This commit is contained in:
parent
00e67c1f86
commit
7c5c3faae2
2 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue