mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
SCUMM: Fix handling of string resources in smash player for Steam mac games
The Dig Steam/mac uses LF instead of CRLF for end of line. This fixes display of subtitles in that version. This also fixes the crash described in bug #6796.
This commit is contained in:
parent
1adcb23d71
commit
f1c64c2afe
@ -115,6 +115,10 @@ public:
|
||||
if (data_end[-2] == '\r' && data_end[-1] == '\n' && data_end[0] == '\r' && data_end[1] == '\n') {
|
||||
break;
|
||||
}
|
||||
// In Steam mac version LF is used instead of CR-LF
|
||||
if (data_end[-2] == '\n' && data_end[-1] == '\n') {
|
||||
break;
|
||||
}
|
||||
// In Russian Full Throttle strings are finished with
|
||||
// just one pair of CR-LF
|
||||
if (data_end[-2] == '\r' && data_end[-1] == '\n' && data_end[0] == '#') {
|
||||
|
Loading…
Reference in New Issue
Block a user