[Scummvm-git-logs] scummvm master -> 91f47ebea5b411880a19a11d2939af60fd46160f
mgerhardy
noreply at scummvm.org
Wed Feb 22 17:22:06 UTC 2023
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:
91f47ebea5 TWINE: fixed encoding for custom translations
Commit: 91f47ebea5b411880a19a11d2939af60fd46160f
https://github.com/scummvm/scummvm/commit/91f47ebea5b411880a19a11d2939af60fd46160f
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2023-02-22T18:21:29+01:00
Commit Message:
TWINE: fixed encoding for custom translations
see issue #14192
Changed paths:
engines/twine/parser/text.cpp
diff --git a/engines/twine/parser/text.cpp b/engines/twine/parser/text.cpp
index bd72cc7ece8..7db288402ca 100644
--- a/engines/twine/parser/text.cpp
+++ b/engines/twine/parser/text.cpp
@@ -21,6 +21,7 @@
#include "twine/parser/text.h"
#include "common/debug.h"
+#include "common/str-enc.h"
#include "common/util.h"
#include "common/translation.h"
#include "twine/resources/hqr.h"
@@ -30,10 +31,10 @@ namespace TwinE {
void TextData::initCustomTexts(TextBankId textBankId) {
if (textBankId == TextBankId::Options_and_menus) {
- add(textBankId, TextEntry{_c("High resolution on", "Options menu"), -1, TextId::kCustomHighResOptionOn});
- add(textBankId, TextEntry{_c("High resolution off", "Options menu"), -1, TextId::kCustomHighResOptionOff});
- add(textBankId, TextEntry{_c("Wall collision on", "Options menu"), -1, TextId::kCustomWallCollisionOn});
- add(textBankId, TextEntry{_c("Wall collision off", "Options menu"), -1, TextId::kCustomWallCollisionOff});
+ add(textBankId, TextEntry{_c("High resolution on", "Options menu").encode(Common::CodePage::kDos850), -1, TextId::kCustomHighResOptionOn});
+ add(textBankId, TextEntry{_c("High resolution off", "Options menu").encode(Common::CodePage::kDos850), -1, TextId::kCustomHighResOptionOff});
+ add(textBankId, TextEntry{_c("Wall collision on", "Options menu").encode(Common::CodePage::kDos850), -1, TextId::kCustomWallCollisionOn});
+ add(textBankId, TextEntry{_c("Wall collision off", "Options menu").encode(Common::CodePage::kDos850), -1, TextId::kCustomWallCollisionOff});
}
}
More information about the Scummvm-git-logs
mailing list