[Scummvm-git-logs] scummvm master -> 6abbdf438413bf79fdbd5004a860ac1a8f9691fd
djsrv
dservilla at gmail.com
Thu Aug 12 21:25:48 UTC 2021
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:
6abbdf4384 DIRECTOR: Decode labels
Commit: 6abbdf438413bf79fdbd5004a860ac1a8f9691fd
https://github.com/scummvm/scummvm/commit/6abbdf438413bf79fdbd5004a860ac1a8f9691fd
Author: djsrv (dservilla at gmail.com)
Date: 2021-08-12T17:25:16-04:00
Commit Message:
DIRECTOR: Decode labels
Changed paths:
engines/director/score.cpp
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 5648c1c001..7c54915e97 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -911,6 +911,7 @@ void Score::loadLabels(Common::SeekableReadStreamEndian &stream) {
for (uint32 j = stringPos; j < nextStringPos; j++) {
label += stream.readByte();
}
+ label = _movie->getCast()->decodeString(label).encode(Common::kUtf8);
_labels->insert(new Label(label, frame));
stream.seek(streamPos);
@@ -923,7 +924,7 @@ void Score::loadLabels(Common::SeekableReadStreamEndian &stream) {
debugC(2, kDebugLoading, "****** Loading labels");
for (j = _labels->begin(); j != _labels->end(); ++j) {
- debugC(2, kDebugLoading, "Frame %d, Label '%s'", (*j)->number, Common::toPrintable((*j)->name).c_str());
+ debugC(2, kDebugLoading, "Frame %d, Label '%s'", (*j)->number, utf8ToPrintable((*j)->name).c_str());
}
}
More information about the Scummvm-git-logs
mailing list