mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +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:
@@ -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] == '#') {
|
||||
|
||||
Reference in New Issue
Block a user