win32: add japanese language patch
This commit is contained in:
parent
3176cf6b18
commit
6781716712
|
@ -5,6 +5,7 @@ General/Core:
|
|||
bug: fix dma address reloading
|
||||
bug: fix rom close memory corruption
|
||||
bug: fix div and sqrt busy flag bug
|
||||
bug: fix vectest
|
||||
|
||||
Graphics:
|
||||
bug: fix a mistakenly rendered OBJ window
|
||||
|
@ -13,6 +14,7 @@ Windows:
|
|||
bug: fix 16bpp display
|
||||
bug: more fixes to multi-gamepads
|
||||
enh: add EPX and EPX1.5X resize filters
|
||||
enh: add a japanese translation which will soon be stale like the others
|
||||
|
||||
0.9.4 -> 0.9.5 (r2437-r3075)
|
||||
|
||||
|
|
|
@ -1912,6 +1912,11 @@ void SetLanguage(int langid)
|
|||
setLanguage(MAKELCID(MAKELANGID(LANG_ITALIAN, SUBLANG_ITALIAN), SORT_DEFAULT));
|
||||
SetThreadLocale(MAKELCID(MAKELANGID(LANG_ITALIAN, SUBLANG_ITALIAN), SORT_DEFAULT));
|
||||
break;
|
||||
case 5:
|
||||
// Japanese
|
||||
setLanguage(MAKELCID(MAKELANGID(LANG_JAPANESE, SUBLANG_DEFAULT), SORT_DEFAULT));
|
||||
SetThreadLocale(MAKELCID(MAKELANGID(LANG_JAPANESE, SUBLANG_DEFAULT), SORT_DEFAULT));
|
||||
break;
|
||||
|
||||
default: break;
|
||||
break;
|
||||
|
@ -1931,7 +1936,7 @@ void SaveLanguage(int langid)
|
|||
void CheckLanguage(UINT id)
|
||||
{
|
||||
int i;
|
||||
for (i = IDC_LANGENGLISH; i < IDC_LANG_CHINESE_SIMPLIFIED+1; i++)
|
||||
for (i = IDC_LANGENGLISH; i < IDC_LANGJAPANESE+1; i++)
|
||||
MainWindow->checkMenu(i, false);
|
||||
|
||||
MainWindow->checkMenu(id, true);
|
||||
|
@ -4822,6 +4827,11 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
|||
ChangeLanguage(1);
|
||||
CheckLanguage(LOWORD(wParam));
|
||||
return 0;
|
||||
case IDC_LANGDANISH:
|
||||
SaveLanguage(2);
|
||||
ChangeLanguage(2);
|
||||
CheckLanguage(LOWORD(wParam));
|
||||
return 0;
|
||||
case IDC_LANG_CHINESE_SIMPLIFIED:
|
||||
SaveLanguage(3);
|
||||
ChangeLanguage(3);
|
||||
|
@ -4832,12 +4842,11 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
|||
ChangeLanguage(4);
|
||||
CheckLanguage(LOWORD(wParam));
|
||||
return 0;
|
||||
|
||||
case IDC_LANGDANISH:
|
||||
SaveLanguage(2);
|
||||
ChangeLanguage(2);
|
||||
case IDC_LANGJAPANESE:
|
||||
SaveLanguage(5);
|
||||
ChangeLanguage(5);
|
||||
CheckLanguage(LOWORD(wParam));
|
||||
return 0;
|
||||
return 0;
|
||||
|
||||
case IDC_FRAMELIMIT:
|
||||
FrameLimit ^= 1;
|
||||
|
|
|
@ -94,8 +94,11 @@
|
|||
#define IDC_LANGENGLISH 210
|
||||
#define IDC_LANGFRENCH 211
|
||||
#define IDC_LANGDANISH 212
|
||||
#define IDM_MGPU 213
|
||||
#define IDM_SGPU 214
|
||||
#define IDC_LANG_CHINESE_SIMPLIFIED 213
|
||||
#define IDC_LANGITALIAN 214
|
||||
#define IDC_LANGJAPANESE 215
|
||||
#define IDM_MGPU 219
|
||||
#define IDM_SGPU 220
|
||||
#define IDC_FRAMESKIPAUTO 221
|
||||
#define IDC_8_BIT 302
|
||||
#define IDC_16_BIT 303
|
||||
|
@ -690,7 +693,6 @@
|
|||
#define IDM_FILE_RECORDWAV 40017
|
||||
#define IDM_EXPORTBACKUPMEMORY 40018
|
||||
#define IDM_STOPMOVIE 40019
|
||||
#define IDC_LANG_CHINESE_SIMPLIFIED 40020
|
||||
#define IDM_SCREENSEP_NDSGAP2 40021
|
||||
#define IDM_SCREENSEP_DRAGEDIT 40022
|
||||
#define IDM_SCREENSEP_COLORWHITE 40023
|
||||
|
@ -805,13 +807,12 @@
|
|||
#define IDM_RENDER_HQ2XS 60081
|
||||
#define IDM_RENDER_LQ2X 60082
|
||||
#define IDM_RENDER_LQ2XS 60083
|
||||
#define IDC_LANGITALIAN 60084
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 105
|
||||
#define _APS_NEXT_RESOURCE_VALUE 106
|
||||
#define _APS_NEXT_COMMAND_VALUE 40008
|
||||
#define _APS_NEXT_CONTROL_VALUE 1020
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue