diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 763511623..ff006f3a7 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -2241,6 +2241,11 @@ void SetLanguage(int langid) setLanguage(MAKELCID(MAKELANGID(LANG_SPANISH, SUBLANG_SPANISH), SORT_DEFAULT)); SetThreadLocale(MAKELCID(MAKELANGID(LANG_SPANISH, SUBLANG_SPANISH), SORT_DEFAULT)); break; + case LANGUAGE_KOREAN: + currLanguageMenuItem = IDC_LANGKOREAN; + setLanguage(MAKELCID(MAKELANGID(LANG_KOREAN, SUBLANG_KOREAN), SORT_DEFAULT)); + SetThreadLocale(MAKELCID(MAKELANGID(LANG_KOREAN, SUBLANG_KOREAN), SORT_DEFAULT)); + break; default: break; @@ -3968,7 +3973,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM //Updated Checked menu items //language choices - for(UINT i = IDC_LANGENGLISH; i < IDC_LANGSPANISH+1; i++) + for(UINT i = IDC_LANGENGLISH; i <= IDC_LANGKOREAN; i++) MainWindow->checkMenu(i, i == currLanguageMenuItem); //emulation menu @@ -5357,6 +5362,9 @@ DOKEYDOWN: case IDC_LANGSPANISH: ChangeLanguage(LANGUAGE_SPANISH); return 0; + case IDC_LANGKOREAN: + ChangeLanguage(LANGUAGE_KOREAN); + return 0; case IDC_FRAMELIMIT: FrameLimit ^= 1; diff --git a/desmume/src/windows/main.h b/desmume/src/windows/main.h index 0fc5a7968..d1c3e77de 100644 --- a/desmume/src/windows/main.h +++ b/desmume/src/windows/main.h @@ -38,6 +38,7 @@ static const int LANGUAGE_CHINESE = 3; static const int LANGUAGE_ITALIAN = 4; static const int LANGUAGE_JAPANESE = 5; static const int LANGUAGE_SPANISH = 6; +static const int LANGUAGE_KOREAN = 7; extern void Change3DCoreWithFallbackAndSave(int newCore, int fallbackCore=GPU3D_SWRAST); diff --git a/desmume/src/windows/resource.h b/desmume/src/windows/resource.h index d3b5cdb12..b32237e09 100644 --- a/desmume/src/windows/resource.h +++ b/desmume/src/windows/resource.h @@ -101,6 +101,7 @@ #define IDC_LANGITALIAN 214 #define IDC_LANGJAPANESE 215 #define IDC_LANGSPANISH 216 +#define IDC_LANGKOREAN 217 #define IDM_MGPU 219 #define IDM_SGPU 220 #define IDC_FRAMESKIPAUTO 221 diff --git a/desmume/src/windows/resources.rc b/desmume/src/windows/resources.rc index bad72ddb5..34cb67c6b 100644 Binary files a/desmume/src/windows/resources.rc and b/desmume/src/windows/resources.rc differ