mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 09:21:08 +00:00
parent
5c8a93b486
commit
6360c392f2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user