[Scummvm-cvs-logs] SF.net SVN: scummvm:[51598] scummvm/trunk/engines/sci/sci.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Mon Aug 2 00:41:07 CEST 2010


Revision: 51598
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51598&view=rev
Author:   m_kiewitz
Date:     2010-08-01 22:41:06 +0000 (Sun, 01 Aug 2010)

Log Message:
-----------
SCI: honoring english selection for multilingual games

Modified Paths:
--------------
    scummvm/trunk/engines/sci/sci.cpp

Modified: scummvm/trunk/engines/sci/sci.cpp
===================================================================
--- scummvm/trunk/engines/sci/sci.cpp	2010-08-01 22:11:21 UTC (rev 51597)
+++ scummvm/trunk/engines/sci/sci.cpp	2010-08-01 22:41:06 UTC (rev 51598)
@@ -237,6 +237,17 @@
 
 	debug("Emulating SCI version %s\n", getSciVersionDesc(getSciVersion()));
 
+	if (_gameDescription->flags & ADGF_ADDENGLISH) {
+		// if game is multilingual
+		if (getLanguage() == Common::EN_ANY) {
+			// and english was selected as language
+			if (SELECTOR(printLang) != -1) // set text language to english
+				writeSelectorValue(segMan, _gameObj, SELECTOR(printLang), 1);
+			if (SELECTOR(parseLang) != -1) // and set parser language to english as well
+				writeSelectorValue(segMan, _gameObj, SELECTOR(parseLang), 1);
+		}
+	}
+
 	// Check whether loading a savestate was requested
 	int saveSlot = ConfMan.getInt("save_slot");
 	if (saveSlot >= 0) {


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