hook language command switch to V2 font / prepositions
svn-id: r7970
This commit is contained in:
parent
fb0b37c69b
commit
80eab4c3c4
3 changed files with 16 additions and 3 deletions
|
@ -463,8 +463,18 @@ static byte frenchCharsetDataV2[] = {
|
|||
|
||||
void CharsetRendererV2::setCurID(byte id) {
|
||||
|
||||
_fontPtr = frenchCharsetDataV2;
|
||||
switch (_vm->_language) {
|
||||
case DE_DEU:
|
||||
_fontPtr = germanCharsetDataV2;
|
||||
break;
|
||||
case FR_FRA:
|
||||
_fontPtr = frenchCharsetDataV2;
|
||||
break;
|
||||
default:
|
||||
// For now we default to the german font
|
||||
_fontPtr = germanCharsetDataV2;
|
||||
break;
|
||||
}
|
||||
|
||||
#if 0
|
||||
// Decompress weird encoding in which the Zak executable contains the font.
|
||||
|
|
|
@ -951,7 +951,8 @@ void Scumm_v2::o2_drawSentence() {
|
|||
{ " ", " in", " with", " on", " to" }, // Chinese
|
||||
{ " ", " in", " with", " on", " to" } // Korean
|
||||
};
|
||||
strcat(sentence, prepositions[0][VAR(VAR_SENTENCE_PREPOSITION)]);
|
||||
int lang = (_language <= 8) ? _language : 0;
|
||||
strcat(sentence, prepositions[lang][VAR(VAR_SENTENCE_PREPOSITION)]);
|
||||
}
|
||||
|
||||
if (VAR(VAR_SENTENCE_OBJECT2) > 0) {
|
||||
|
|
|
@ -1071,7 +1071,9 @@ protected:
|
|||
byte *_msgPtrToAdd;
|
||||
const byte *_messagePtr;
|
||||
bool _keepText;
|
||||
public:
|
||||
uint16 _language;
|
||||
protected:
|
||||
bool _existLanguageFile;
|
||||
char *_languageBuffer;
|
||||
struct langIndexNode *_languageIndex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue