[Scummvm-cvs-logs] SF.net SVN: scummvm: [32242] scummvm/trunk/engines/kyra

athrxx at users.sourceforge.net athrxx at users.sourceforge.net
Sat May 24 15:51:25 CEST 2008


Revision: 32242
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32242&view=rev
Author:   athrxx
Date:     2008-05-24 06:51:25 -0700 (Sat, 24 May 2008)

Log Message:
-----------
fix for missing spellbook and letter text in the floppy versions

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/gui_hof.cpp
    scummvm/trunk/engines/kyra/script_hof.cpp
    scummvm/trunk/engines/kyra/staticres.cpp

Modified: scummvm/trunk/engines/kyra/gui_hof.cpp
===================================================================
--- scummvm/trunk/engines/kyra/gui_hof.cpp	2008-05-24 01:17:04 UTC (rev 32241)
+++ scummvm/trunk/engines/kyra/gui_hof.cpp	2008-05-24 13:51:25 UTC (rev 32242)
@@ -455,12 +455,12 @@
 	char filename[16];
 
 	sprintf(filename, "PAGE%.01X.", _bookCurPage);
-	strcat(filename, _languageExtension[_lang]);
+	strcat(filename, _languageExtension[(_flags.platform == Common::kPlatformPC && _flags.isTalkie) ? _lang : 4]);
 	uint8 *leftPage = _res->fileData(filename, 0);
 	int leftPageY = _bookPageYOffset[_bookCurPage];
 
 	sprintf(filename, "PAGE%.01X.", _bookCurPage+1);
-	strcat(filename, _languageExtension[_lang]);
+	strcat(filename, _languageExtension[(_flags.platform == Common::kPlatformPC && _flags.isTalkie) ? _lang : 4]);
 	uint8 *rightPage = (_bookCurPage != _bookMaxPage) ? _res->fileData(filename, 0) : 0;
 	int rightPageY = _bookPageYOffset[_bookCurPage+1];
 

Modified: scummvm/trunk/engines/kyra/script_hof.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script_hof.cpp	2008-05-24 01:17:04 UTC (rev 32241)
+++ scummvm/trunk/engines/kyra/script_hof.cpp	2008-05-24 13:51:25 UTC (rev 32242)
@@ -800,7 +800,7 @@
 	_screen->fadeToBlack(0x14);
 	
 	sprintf(filename, "LETTER%.1d.", letter);
-	strcat(filename, _languageExtension[_lang]);
+	strcat(filename, _languageExtension[(_flags.platform == Common::kPlatformPC && _flags.isTalkie) ? _lang : 4]);
 
 	uint8 *letterBuffer = _res->fileData(filename, 0);
 	if (letterBuffer) {

Modified: scummvm/trunk/engines/kyra/staticres.cpp
===================================================================
--- scummvm/trunk/engines/kyra/staticres.cpp	2008-05-24 01:17:04 UTC (rev 32241)
+++ scummvm/trunk/engines/kyra/staticres.cpp	2008-05-24 13:51:25 UTC (rev 32242)
@@ -1548,7 +1548,8 @@
 	"GER",/*,
 	"ITA",		Italian and Spanish were never included
 	"SPA"*/
-	"JPN"
+	"JPN",
+	"TXT"		// This is used for spell book and letter text
 };
 
 const char *KyraEngine_HoF::_scriptLangExt[] = {


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