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:
Thierry Crozat 2015-02-03 08:49:26 +00:00
parent 1adcb23d71
commit f1c64c2afe

View File

@ -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] == '#') {