[Scummvm-cvs-logs] SF.net SVN: scummvm:[51593] scummvm/trunk/engines
sev at users.sourceforge.net
sev at users.sourceforge.net
Sun Aug 1 23:17:00 CEST 2010
Revision: 51593
http://scummvm.svn.sourceforge.net/scummvm/?rev=51593&view=rev
Author: sev
Date: 2010-08-01 21:17:00 +0000 (Sun, 01 Aug 2010)
Log Message:
-----------
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.
Modified Paths:
--------------
scummvm/trunk/engines/advancedDetector.cpp
scummvm/trunk/engines/advancedDetector.h
Modified: scummvm/trunk/engines/advancedDetector.cpp
===================================================================
--- scummvm/trunk/engines/advancedDetector.cpp 2010-08-01 20:49:13 UTC (rev 51592)
+++ scummvm/trunk/engines/advancedDetector.cpp 2010-08-01 21:17:00 UTC (rev 51593)
@@ -209,6 +209,9 @@
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 {
Modified: scummvm/trunk/engines/advancedDetector.h
===================================================================
--- scummvm/trunk/engines/advancedDetector.h 2010-08-01 20:49:13 UTC (rev 51592)
+++ scummvm/trunk/engines/advancedDetector.h 2010-08-01 21:17:00 UTC (rev 51593)
@@ -45,6 +45,7 @@
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list