diff options
-rw-r--r-- | engines/cruise/staticres.cpp | 50 | ||||
-rw-r--r-- | engines/cruise/staticres.h | 7 |
2 files changed, 55 insertions, 2 deletions
diff --git a/engines/cruise/staticres.cpp b/engines/cruise/staticres.cpp index e2633a5d36..1d6f26ac7b 100644 --- a/engines/cruise/staticres.cpp +++ b/engines/cruise/staticres.cpp @@ -57,7 +57,9 @@ int actor_invstat[][13] = { { -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 @@ int16 fontCharacterTable[256] = { -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 // diff --git a/engines/cruise/staticres.h b/engines/cruise/staticres.h index e53215acee..ef9a1b47e9 100644 --- a/engines/cruise/staticres.h +++ b/engines/cruise/staticres.h @@ -27,6 +27,7 @@ #define CRUISE_STATICRES_H #include "common/scummsys.h" +#include "cruise/cruise.h" namespace Cruise { @@ -38,7 +39,11 @@ extern int actor_stat[][13]; 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[]; |