win32: add another @!#*(@#$ing language, braziliano this time. now another 3% of the world population can use desmume without having to be arsed to learn internetional.
This commit is contained in:
parent
b9e3356bd3
commit
2049720303
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue