[Scummvm-git-logs] scummvm master -> bf0397654fc1a481289e4a29e840c7132324b504

rvanlaar noreply at scummvm.org
Tue Feb 8 20:36:48 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
bf0397654f DIRECTOR: Decode score scripts using regional encoding


Commit: bf0397654fc1a481289e4a29e840c7132324b504
    https://github.com/scummvm/scummvm/commit/bf0397654fc1a481289e4a29e840c7132324b504
Author: eientei95 (einstein95 at users.noreply.github.com)
Date: 2022-02-08T21:36:44+01:00

Commit Message:
DIRECTOR: Decode score scripts using regional encoding

Changed paths:
    engines/director/score.cpp


diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 2a23fbe577a..2e723c08be8 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -978,7 +978,7 @@ void Score::loadActions(Common::SeekableReadStreamEndian &stream) {
 		stream.seek(stringPos);
 
 		Common::String script = stream.readString(0, nextStringPos - stringPos);
-		_actions[i] = script.decode(Common::kMacRoman).encode(Common::kUtf8);
+		_actions[i] = _movie->getCast()->decodeString(script).encode(Common::kUtf8);
 
 		debugC(3, kDebugLoading, "Action index: %d id: %d nextId: %d subId: %d, code: %s", i, id, nextId, subId, _actions[i].c_str());
 




More information about the Scummvm-git-logs mailing list