diff options
author | Florian Kagerer | 2008-05-24 13:51:25 +0000 |
---|---|---|
committer | Florian Kagerer | 2008-05-24 13:51:25 +0000 |
commit | d766719a65b3f8f968b2fbc81b6443220248ebfc (patch) | |
tree | 82900759e34a9b7d2768501f80585189a593248d /engines | |
parent | 942f838924f286cc23258dd538199dbcda8c9929 (diff) | |
download | scummvm-rg350-d766719a65b3f8f968b2fbc81b6443220248ebfc.tar.gz scummvm-rg350-d766719a65b3f8f968b2fbc81b6443220248ebfc.tar.bz2 scummvm-rg350-d766719a65b3f8f968b2fbc81b6443220248ebfc.zip |
fix for missing spellbook and letter text in the floppy versions
svn-id: r32242
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/gui_hof.cpp | 4 | ||||
-rw-r--r-- | engines/kyra/script_hof.cpp | 2 | ||||
-rw-r--r-- | engines/kyra/staticres.cpp | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/engines/kyra/gui_hof.cpp b/engines/kyra/gui_hof.cpp index 10f7f657a3..f7b2b4418d 100644 --- a/engines/kyra/gui_hof.cpp +++ b/engines/kyra/gui_hof.cpp @@ -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]; diff --git a/engines/kyra/script_hof.cpp b/engines/kyra/script_hof.cpp index d2b6b08183..2e90379e62 100644 --- a/engines/kyra/script_hof.cpp +++ b/engines/kyra/script_hof.cpp @@ -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) { diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp index 42d1e6b0df..fe9925c44e 100644 --- a/engines/kyra/staticres.cpp +++ b/engines/kyra/staticres.cpp @@ -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[] = { |