diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index ff006f3a7..d037fd958 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -2246,6 +2246,11 @@ void SetLanguage(int langid) setLanguage(MAKELCID(MAKELANGID(LANG_KOREAN, SUBLANG_KOREAN), SORT_DEFAULT)); SetThreadLocale(MAKELCID(MAKELANGID(LANG_KOREAN, SUBLANG_KOREAN), SORT_DEFAULT)); break; + case LANGUAGE_BRAZILIAN: + currLanguageMenuItem = IDC_LANG_BRAZILIAN_PORTUGUESE; + setLanguage(MAKELCID(MAKELANGID(LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN), SORT_DEFAULT)); + SetThreadLocale(MAKELCID(MAKELANGID(LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN), SORT_DEFAULT)); + break; default: break; @@ -3973,7 +3978,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM //Updated Checked menu items //language choices - for(UINT i = IDC_LANGENGLISH; i <= IDC_LANGKOREAN; i++) + for(UINT i = IDC_LANGENGLISH; i <= IDC_LANG_BRAZILIAN_PORTUGUESE; i++) MainWindow->checkMenu(i, i == currLanguageMenuItem); //emulation menu @@ -5365,6 +5370,9 @@ DOKEYDOWN: case IDC_LANGKOREAN: ChangeLanguage(LANGUAGE_KOREAN); return 0; + case IDC_LANG_BRAZILIAN_PORTUGUESE: + ChangeLanguage(LANGUAGE_BRAZILIAN); + return 0; case IDC_FRAMELIMIT: FrameLimit ^= 1; diff --git a/desmume/src/windows/main.h b/desmume/src/windows/main.h index d1c3e77de..f5a9bcebf 100644 --- a/desmume/src/windows/main.h +++ b/desmume/src/windows/main.h @@ -39,6 +39,7 @@ static const int LANGUAGE_ITALIAN = 4; static const int LANGUAGE_JAPANESE = 5; static const int LANGUAGE_SPANISH = 6; static const int LANGUAGE_KOREAN = 7; +static const int LANGUAGE_BRAZILIAN = 8; extern void Change3DCoreWithFallbackAndSave(int newCore, int fallbackCore=GPU3D_SWRAST); diff --git a/desmume/src/windows/resource.h b/desmume/src/windows/resource.h index b32237e09..8e5a274c1 100644 --- a/desmume/src/windows/resource.h +++ b/desmume/src/windows/resource.h @@ -102,6 +102,7 @@ #define IDC_LANGJAPANESE 215 #define IDC_LANGSPANISH 216 #define IDC_LANGKOREAN 217 +#define IDC_LANG_BRAZILIAN_PORTUGUESE 218 #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..212369b69 100644 Binary files a/desmume/src/windows/resources.rc and b/desmume/src/windows/resources.rc differ