mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-01 20:22:55 +01:00
Implement CP949 to UTF-8 conversion for Korean.
This commit is contained in:
committed by
Michael Steenbeek
parent
0232bb5add
commit
558cc07cb0
@@ -161,14 +161,14 @@ constexpr uint16 MAX_OBJECT_CACHED_STRINGS = 2048;
|
||||
static wchar_t convert_specific_language_character_to_unicode(RCT2LanguageId languageId, wchar_t codepoint)
|
||||
{
|
||||
switch (languageId) {
|
||||
case RCT2_LANGUAGE_ID_KOREAN:
|
||||
return codepoint;
|
||||
case RCT2_LANGUAGE_ID_CHINESE_TRADITIONAL:
|
||||
return encoding_convert_big5_to_unicode(codepoint);
|
||||
case RCT2_LANGUAGE_ID_CHINESE_SIMPLIFIED:
|
||||
return encoding_convert_gb2312_to_unicode(codepoint);
|
||||
case RCT2_LANGUAGE_ID_JAPANESE:
|
||||
return encoding_convert_cp932_to_unicode(codepoint);
|
||||
case RCT2_LANGUAGE_ID_KOREAN:
|
||||
return encoding_convert_cp949_to_unicode(codepoint);
|
||||
default:
|
||||
return codepoint;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -106,6 +106,7 @@ wchar_t encoding_convert_unicode_to_rct2(wchar_t unicode);
|
||||
wchar_t encoding_convert_gb2312_to_unicode(wchar_t gb2312);
|
||||
wchar_t encoding_convert_big5_to_unicode(wchar_t big5);
|
||||
wchar_t encoding_convert_cp932_to_unicode(wchar_t cp932);
|
||||
wchar_t encoding_convert_cp949_to_unicode(wchar_t cp949);
|
||||
|
||||
#define MAX_USER_STRINGS 1024
|
||||
#define USER_STRING_MAX_LENGTH 32
|
||||
|
||||
Reference in New Issue
Block a user