aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlolbot-iichan2019-07-21 05:40:56 +0300
committerFilippos Karapetis2019-07-21 08:51:11 +0300
commitea98335f2d690a43f3b8185dc474751ffa56cb36 (patch)
tree67c3e355c8c6f6ff918ed0b625a2b7a67e99912a
parent567a6b20e67ee96331e61bc5760d0ed786a30a7b (diff)
downloadscummvm-rg350-ea98335f2d690a43f3b8185dc474751ffa56cb36.tar.gz
scummvm-rg350-ea98335f2d690a43f3b8185dc474751ffa56cb36.tar.bz2
scummvm-rg350-ea98335f2d690a43f3b8185dc474751ffa56cb36.zip
WINTERMUTE: Support CHARSET_TURKISH at StringUtil
-rw-r--r--engines/wintermute/utils/string_util.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/wintermute/utils/string_util.cpp b/engines/wintermute/utils/string_util.cpp
index d842b468db..b17c5446b7 100644
--- a/engines/wintermute/utils/string_util.cpp
+++ b/engines/wintermute/utils/string_util.cpp
@@ -112,6 +112,9 @@ Common::CodePage StringUtil::mapCodePage(TTextCharset charset) {
case CHARSET_GREEK:
return Common::kWindows1253;
+ case CHARSET_TURKISH:
+ return Common::kWindows1254;
+
case CHARSET_HEBREW:
return Common::kWindows1255;
@@ -156,6 +159,10 @@ Common::CodePage StringUtil::mapCodePage(TTextCharset charset) {
case Common::GR_GRE:
return Common::kWindows1253;
+ //cp1254: Turkish
+ case Common::TR_TUR:
+ return Common::kWindows1254;
+
//cp1255: Hebrew
case Common::HE_ISR:
return Common::kWindows1255;
@@ -165,7 +172,12 @@ Common::CodePage StringUtil::mapCodePage(TTextCharset charset) {
case Common::LV_LAT:
return Common::kWindows1257;
+ case Common::JA_JPN:
+ case Common::KO_KOR:
+ case Common::ZH_CNA:
+ case Common::ZH_TWN:
default:
+ warning("Unsupported charset: %d", charset);
return Common::kWindows1252;
}
@@ -176,7 +188,6 @@ Common::CodePage StringUtil::mapCodePage(TTextCharset charset) {
case CHARSET_MAC:
case CHARSET_SHIFTJIS:
case CHARSET_SYMBOL:
- case CHARSET_TURKISH:
case CHARSET_VIETNAMESE:
case CHARSET_JOHAB:
case CHARSET_ARABIC: