diff options
author | Florian Kagerer | 2008-06-22 12:41:46 +0000 |
---|---|---|
committer | Florian Kagerer | 2008-06-22 12:41:46 +0000 |
commit | 6360c392f25d880f8905dedaee0f34889817acaf (patch) | |
tree | 8bce68925c97a37a1eb5ea8abcb52e8f6b301b18 /engines | |
parent | 5c8a93b4864f66a896735caee6ef8be29d301820 (diff) | |
download | scummvm-rg350-6360c392f25d880f8905dedaee0f34889817acaf.tar.gz scummvm-rg350-6360c392f25d880f8905dedaee0f34889817acaf.tar.bz2 scummvm-rg350-6360c392f25d880f8905dedaee0f34889817acaf.zip |
missed this in last commit (bug fix for #1997149)
svn-id: r32753
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/script_hof.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/kyra/script_hof.cpp b/engines/kyra/script_hof.cpp index 91fbfb3e49..11b97afbe6 100644 --- a/engines/kyra/script_hof.cpp +++ b/engines/kyra/script_hof.cpp @@ -800,9 +800,15 @@ int KyraEngine_HoF::o2_showLetter(EMCState *script) { _screen->fadeToBlack(0x14); sprintf(filename, "LETTER%.1d.", letter); - strcat(filename, (_flags.isTalkie || _flags.platform == Common::kPlatformFMTowns || _lang) ? _languageExtension[_lang] : "TXT"); - + strcat(filename, _languageExtension[_lang]); uint8 *letterBuffer = _res->fileData(filename, 0); + if (!letterBuffer) { + // some floppy versions use a TXT extension + sprintf(filename, "LETTER%.1d.", letter); + strcat(filename, "TXT"); + letterBuffer = _res->fileData(filename, 0); + } + if (letterBuffer) { bookDecodeText(letterBuffer); bookPrintText(2, letterBuffer, 0xC, 0xA, 0x20); |