Skip to content

Commit

Permalink
WINTERMUTE: Support CHARSET_TURKISH at StringUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
lolbot-iichan authored and bluegr committed Jul 21, 2019
1 parent 567a6b2 commit ea98335
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion engines/wintermute/utils/string_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand All @@ -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;
}

Expand All @@ -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:
Expand Down

0 comments on commit ea98335

Please sign in to comment.