mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
fix for missing spellbook and letter text in the floppy versions
svn-id: r32242
This commit is contained in:
parent
942f838924
commit
d766719a65
@ -455,12 +455,12 @@ void KyraEngine_HoF::showBookPage() {
|
||||
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];
|
||||
|
||||
|
@ -800,7 +800,7 @@ int KyraEngine_HoF::o2_showLetter(EMCState *script) {
|
||||
_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) {
|
||||
|
@ -1548,7 +1548,8 @@ const char *KyraEngine_HoF::_languageExtension[] = {
|
||||
"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[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user