[Scummvm-cvs-logs] SF.net SVN: scummvm:[40621] scummvm/trunk/engines/cruise

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sat May 16 13:16:34 CEST 2009


Revision: 40621
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40621&view=rev
Author:   dreammaster
Date:     2009-05-16 11:16:34 +0000 (Sat, 16 May 2009)

Log Message:
-----------
Added the font character lookup table for the German version of the game

Modified Paths:
--------------
    scummvm/trunk/engines/cruise/staticres.cpp
    scummvm/trunk/engines/cruise/staticres.h

Modified: scummvm/trunk/engines/cruise/staticres.cpp
===================================================================
--- scummvm/trunk/engines/cruise/staticres.cpp	2009-05-16 05:51:20 UTC (rev 40620)
+++ scummvm/trunk/engines/cruise/staticres.cpp	2009-05-16 11:16:34 UTC (rev 40621)
@@ -57,7 +57,9 @@
 	{ -59, -60, -62, -63, -78, 0, 0, 0, 0, 0, 0, 0, 0}
 };
 
-int16 fontCharacterTable[256] = {
+// font character lookup tables
+
+int16 english_fontCharacterTable[256] = {
 	-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
 	-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
 	-1,
@@ -120,6 +122,52 @@
 	-1,
 };
 
+int16 german_fontCharacterTable[256] = {
+	-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+	-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+	-1,
+	0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+	16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
+	30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
+	44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
+	58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
+	72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
+	86, 87, 88, 89, 90, 91, 92,
+	-1, -1, -1,
+	0x72,
+	-1, -1, 
+	0x5e, 
+	-1, -1, -1, -1, -1, -1, -1, -1, -1,
+	0x6a,
+	-1, -1, -1, -1, -1,
+	0x66,
+	-1, -1, -1, -1,
+	0x70, 0x78,
+	-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+	-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+	-1,
+	0x6a, 0x69,
+	-1, -1, -1, -1,
+	0x6b, 0x6c,
+	-1, -1,
+	0x6d, 0x6e,
+	-1, -1, -1, -1, -1, -1,
+	0x6f,
+	-1,
+	0x70,
+	-1, -1,
+	0x71, 0x72,
+	-1, -1,
+	0x74, 0x5D, 0x74, 0x76,
+	-1,
+	0x5E,
+	-1,
+	0x75, 0x73, 0x60, 0x5F, 0x61, 0x62,
+	-1, -1,
+	0x63, 0x64,
+	-1, -1, -1, -1
+};
+
 //
 // Mouse data
 //

Modified: scummvm/trunk/engines/cruise/staticres.h
===================================================================
--- scummvm/trunk/engines/cruise/staticres.h	2009-05-16 05:51:20 UTC (rev 40620)
+++ scummvm/trunk/engines/cruise/staticres.h	2009-05-16 11:16:34 UTC (rev 40621)
@@ -27,6 +27,7 @@
 #define CRUISE_STATICRES_H
 
 #include "common/scummsys.h"
+#include "cruise/cruise.h"
 
 namespace Cruise {
 
@@ -38,8 +39,12 @@
 
 extern int actor_invstat[][13];
 
-extern short int fontCharacterTable[256];
+extern short int english_fontCharacterTable[256];
+extern short int german_fontCharacterTable[256];
 
+#define fontCharacterTable (_vm->getLanguage() == Common::DE_DEU ? \
+	german_fontCharacterTable : english_fontCharacterTable)
+
 // Mouse cursor data
 extern const byte mouseCursorNormal[];
 extern const byte mouseCursorDisk[];


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