Merge pull request #349 from samuelyuan/master
Fixed UTF-8 encoding for window title
This commit is contained in:
commit
67a56d9aa2
|
@ -5,7 +5,7 @@
|
||||||
#1 # "简体中文" // LANGUAGE ID
|
#1 # "简体中文" // LANGUAGE ID
|
||||||
#2 # "山姆" // Author
|
#2 # "山姆" // Author
|
||||||
#3 # "2.2" // Version
|
#3 # "2.2" // Version
|
||||||
#4 # "2015 年 3 月 11 日" // Date
|
#4 # "2015 年 4 月" // Date
|
||||||
|
|
||||||
//About DLL Dialog
|
//About DLL Dialog
|
||||||
#5 # "当前使用的语言"
|
#5 # "当前使用的语言"
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
#144# "设置音频插件..."
|
#144# "设置音频插件..."
|
||||||
#145# "设置控制器插件..."
|
#145# "设置控制器插件..."
|
||||||
#146# "设置 RSP 插件..."
|
#146# "设置 RSP 插件..."
|
||||||
#147# "显示 CPU 占用率 %"
|
#147# "显示 CPU 占用率"
|
||||||
#148# "设置(&S)..."
|
#148# "设置(&S)..."
|
||||||
|
|
||||||
//Debugger Menu
|
//Debugger Menu
|
||||||
|
@ -183,7 +183,7 @@
|
||||||
* Options *
|
* Options *
|
||||||
*********************************************************************************/
|
*********************************************************************************/
|
||||||
//Options Title
|
//Options Title
|
||||||
#400# "系统设置"
|
#400# "设置"
|
||||||
|
|
||||||
//Tabs
|
//Tabs
|
||||||
#401# "插件"
|
#401# "插件"
|
||||||
|
@ -204,8 +204,8 @@
|
||||||
#422# " 视频 (图形) 插件: "
|
#422# " 视频 (图形) 插件: "
|
||||||
#423# " 音频 (声音) 插件: "
|
#423# " 音频 (声音) 插件: "
|
||||||
#424# " 输入 (控制器) 插件: "
|
#424# " 输入 (控制器) 插件: "
|
||||||
#425# "是否使用高级(HLE)图形?"
|
#425# "图形HLE模拟"
|
||||||
#426# "是否使用高级(HLE)音频?"
|
#426# "音频HLE模拟"
|
||||||
#427# "** 使用系统插件 **"
|
#427# "** 使用系统插件 **"
|
||||||
|
|
||||||
//Directory Dialog
|
//Directory Dialog
|
||||||
|
@ -224,19 +224,19 @@
|
||||||
#452# " 选择材质包目录"
|
#452# " 选择材质包目录"
|
||||||
|
|
||||||
//Options Dialog
|
//Options Dialog
|
||||||
#460# "当窗口挂起时暂停模拟器"
|
#460# "当窗口处于非活动状态时暂停模拟器"
|
||||||
#461# "载入 ROM 完毕后切换为全屏模式"
|
#461# "载入ROM后切换为全屏模式"
|
||||||
#462# "隐藏高级设置"
|
#462# "隐藏高级设置"
|
||||||
#463# "记住已选择的金手指"
|
#463# "记住已选择的金手指"
|
||||||
#464# "在ROM运行时禁用屏幕保护程序"
|
#464# "在ROM运行时关闭屏幕保护"
|
||||||
#465# "显示帧速率"
|
#465# "显示帧速率"
|
||||||
#466# "帧速率回显:"
|
#466# "帧速率回显:"
|
||||||
#467# "检查Project64是否已经在运行"
|
#467# "检查Project64是否已经在运行"
|
||||||
|
|
||||||
//ROM Browser Tab
|
//ROM Browser Tab
|
||||||
#480# "最大 # ROM 记录数 (最大 10):"
|
#480# "最大 # ROM 记录数 (0-10):"
|
||||||
#481# "ROM"
|
#481# "ROM"
|
||||||
#482# "最大 # ROM 目录记录数 (最大 10):"
|
#482# "最大 # ROM 目录记录数 (0-10):"
|
||||||
#483# "目录"
|
#483# "目录"
|
||||||
#484# "使用 ROM 浏览器"
|
#484# "使用 ROM 浏览器"
|
||||||
#485# "包含所有子目录"
|
#485# "包含所有子目录"
|
||||||
|
@ -249,13 +249,13 @@
|
||||||
#492# "自动刷新浏览器"
|
#492# "自动刷新浏览器"
|
||||||
|
|
||||||
//Advanced Options
|
//Advanced Options
|
||||||
#500# "在这里的大多数被更改的选项要重新载入一个 ROM 或将当前的 ROM 重置才能生效"
|
#500# "大部分所修改的选项无法立即生效,需要打开一个新ROM或重置当前ROM才能生效"
|
||||||
#501# "默认内核"
|
#501# "默认内核"
|
||||||
#502# "CPU 内核类型:"
|
#502# "CPU 内核类型:"
|
||||||
#503# "自我修改码方案:"
|
#503# "自我修改码方案:"
|
||||||
#504# "默认存档容量:"
|
#504# "默认存档容量:"
|
||||||
#505# "高级模块连接:"
|
#505# "高级模块连接"
|
||||||
#506# "当 ROM 加载后开始模拟"
|
#506# "当ROM加载后,开始模拟"
|
||||||
#507# "总是从 RDB 中覆盖默认设置"
|
#507# "总是从 RDB 中覆盖默认设置"
|
||||||
#508# "自动压缩即时存档文件"
|
#508# "自动压缩即时存档文件"
|
||||||
#509# "开启调试器"
|
#509# "开启调试器"
|
||||||
|
@ -332,7 +332,7 @@
|
||||||
// Accelerator Selector
|
// Accelerator Selector
|
||||||
#680# "CPU 状态:"
|
#680# "CPU 状态:"
|
||||||
#681# "菜单选项:"
|
#681# "菜单选项:"
|
||||||
#682# "目前使用的按键:"
|
#682# "快捷键:"
|
||||||
#683# "选择新快捷键:"
|
#683# "选择新快捷键:"
|
||||||
#684# "目前设置为:"
|
#684# "目前设置为:"
|
||||||
#685# "设置"
|
#685# "设置"
|
||||||
|
@ -342,6 +342,7 @@
|
||||||
#689# "游戏正在运行"
|
#689# "游戏正在运行"
|
||||||
#690# "游戏正在运行 (窗口)"
|
#690# "游戏正在运行 (窗口)"
|
||||||
#691# "游戏正在运行 (全屏)"
|
#691# "游戏正在运行 (全屏)"
|
||||||
|
#692# "按下按键"
|
||||||
|
|
||||||
// Frame Rate Option
|
// Frame Rate Option
|
||||||
#700# "每秒垂直中断 (VI/s)"
|
#700# "每秒垂直中断 (VI/s)"
|
||||||
|
@ -356,6 +357,7 @@
|
||||||
#720# "重置此页"
|
#720# "重置此页"
|
||||||
#721# "全部重设"
|
#721# "全部重设"
|
||||||
#722# "应用"
|
#722# "应用"
|
||||||
|
#723# "关闭"
|
||||||
|
|
||||||
/*********************************************************************************
|
/*********************************************************************************
|
||||||
* ROM Information *
|
* ROM Information *
|
||||||
|
@ -484,11 +486,11 @@
|
||||||
#2023# "没有运行所需的映射空间。
|
#2023# "没有运行所需的映射空间。
|
||||||
|
|
||||||
请检查 ROM 和 ROM 设置."
|
请检查 ROM 和 ROM 设置."
|
||||||
#2024# "即时记忆看来不是当前正在运行的 ROM 的。
|
#2024# "即时存档看来不是当前正在运行的 ROM 的。
|
||||||
|
|
||||||
即时记忆必须在 100% 相同的 ROM 上保存和载入,
|
即时存档必须在 100% 相同的 ROM 上保存和载入,
|
||||||
特别是版本和区域必须相同。
|
特别是版本和区域必须相同。
|
||||||
载入这个即时记忆可能使模拟器或游戏死机
|
载入这个即时存档可能使模拟器或游戏死机
|
||||||
|
|
||||||
您确实要继续载入吗?"
|
您确实要继续载入吗?"
|
||||||
#2025# "错误"
|
#2025# "错误"
|
||||||
|
@ -518,7 +520,7 @@
|
||||||
#2046# "您还未设置个虚拟键作为选项"
|
#2046# "您还未设置个虚拟键作为选项"
|
||||||
#2047# "您必须选择一个选项分配给菜单选项"
|
#2047# "您必须选择一个选项分配给菜单选项"
|
||||||
#2048# "快捷键已被分配为另一个选项"
|
#2048# "快捷键已被分配为另一个选项"
|
||||||
#2049# "在移除前,还未选择快捷键"
|
#2049# "你还未选择你想要删除的快捷键"
|
||||||
#2050# "ROM 已被载入。正在等待模拟开始。"
|
#2050# "ROM 已被载入。正在等待模拟开始。"
|
||||||
#2051# "Project64 beta仅限于会员.
|
#2051# "Project64 beta仅限于会员.
|
||||||
|
|
||||||
|
@ -527,12 +529,13 @@
|
||||||
请联系我们网站"
|
请联系我们网站"
|
||||||
#2052# "程序错误"
|
#2052# "程序错误"
|
||||||
#2053# "无法在7z文件中查询文件名"
|
#2053# "无法在7z文件中查询文件名"
|
||||||
#2054# "使用低级画面"
|
#2054# "图形LLE模拟"
|
||||||
#2055# "低级(LLE)图形不是平时使用的!!!
|
#2055# "图形LLE模拟不是平时使用的!!!
|
||||||
建议您仅在测试环境下使用低级(LLE)图形, 玩游戏时不要使用低级(LLE)图形
|
这仅用于测试,而不是玩游戏
|
||||||
|
|
||||||
您确定修改为低级(LLE)图形?"
|
你确定改成图形LLE?"
|
||||||
#2056# "使用高级音频"
|
#2056# "音频HLE模拟"
|
||||||
#2057# "高级(HLE)音频需要第三方插件!!!
|
#2057# "音频HLE模拟需要第三方插件!!!
|
||||||
如果您使用的第三方插件不支持高级(HLE)音频,您将听不到声音。
|
如果你使用的第三方插件不支持音频HLE,你将听不到声音。
|
||||||
是否使用高级(HLE)音频?"
|
|
||||||
|
你确定改成音频HLE?"
|
||||||
|
|
|
@ -342,6 +342,7 @@
|
||||||
#689# "Game playing"
|
#689# "Game playing"
|
||||||
#690# "Game playing (windowed)"
|
#690# "Game playing (windowed)"
|
||||||
#691# "Game playing (full-screen)"
|
#691# "Game playing (full-screen)"
|
||||||
|
#692# "Detect Key"
|
||||||
|
|
||||||
// Frame Rate Option
|
// Frame Rate Option
|
||||||
#700# "Vertical interrupts per second"
|
#700# "Vertical interrupts per second"
|
||||||
|
@ -356,6 +357,7 @@
|
||||||
#720# "Reset Page"
|
#720# "Reset Page"
|
||||||
#721# "Reset All"
|
#721# "Reset All"
|
||||||
#722# "Apply"
|
#722# "Apply"
|
||||||
|
#723# "Close"
|
||||||
|
|
||||||
/*********************************************************************************
|
/*********************************************************************************
|
||||||
* ROM Information *
|
* ROM Information *
|
||||||
|
|
|
@ -371,6 +371,7 @@ enum LanguageStringID{
|
||||||
ACCEL_CPUSTATE_2 = 689,
|
ACCEL_CPUSTATE_2 = 689,
|
||||||
ACCEL_CPUSTATE_3 = 690,
|
ACCEL_CPUSTATE_3 = 690,
|
||||||
ACCEL_CPUSTATE_4 = 691,
|
ACCEL_CPUSTATE_4 = 691,
|
||||||
|
ACCEL_DETECTKEY = 692,
|
||||||
|
|
||||||
// Frame Rate Option
|
// Frame Rate Option
|
||||||
STR_FR_VIS = 700,
|
STR_FR_VIS = 700,
|
||||||
|
@ -385,6 +386,7 @@ enum LanguageStringID{
|
||||||
BOTTOM_RESET_PAGE = 720,
|
BOTTOM_RESET_PAGE = 720,
|
||||||
BOTTOM_RESET_ALL = 721,
|
BOTTOM_RESET_ALL = 721,
|
||||||
BOTTOM_APPLY = 722,
|
BOTTOM_APPLY = 722,
|
||||||
|
BOTTOM_CLOSE = 723,
|
||||||
|
|
||||||
/*********************************************************************************
|
/*********************************************************************************
|
||||||
* ROM Information *
|
* ROM Information *
|
||||||
|
|
|
@ -337,6 +337,7 @@ void CLanguage::LoadDefaultStrings (void)
|
||||||
DEF_STR(ACCEL_CPUSTATE_2, L"Game playing");
|
DEF_STR(ACCEL_CPUSTATE_2, L"Game playing");
|
||||||
DEF_STR(ACCEL_CPUSTATE_3, L"Game playing (windowed)");
|
DEF_STR(ACCEL_CPUSTATE_3, L"Game playing (windowed)");
|
||||||
DEF_STR(ACCEL_CPUSTATE_4, L"Game playing (full-screen)");
|
DEF_STR(ACCEL_CPUSTATE_4, L"Game playing (full-screen)");
|
||||||
|
DEF_STR(ACCEL_DETECTKEY, L"Detect Key");
|
||||||
|
|
||||||
// Frame Rate Option
|
// Frame Rate Option
|
||||||
DEF_STR(STR_FR_VIS, L"Vertical interrupts per second");
|
DEF_STR(STR_FR_VIS, L"Vertical interrupts per second");
|
||||||
|
@ -351,6 +352,7 @@ void CLanguage::LoadDefaultStrings (void)
|
||||||
DEF_STR(BOTTOM_RESET_PAGE, L"Reset Page");
|
DEF_STR(BOTTOM_RESET_PAGE, L"Reset Page");
|
||||||
DEF_STR(BOTTOM_RESET_ALL, L"Reset All");
|
DEF_STR(BOTTOM_RESET_ALL, L"Reset All");
|
||||||
DEF_STR(BOTTOM_APPLY, L"Apply");
|
DEF_STR(BOTTOM_APPLY, L"Apply");
|
||||||
|
DEF_STR(BOTTOM_CLOSE, L"Close");
|
||||||
|
|
||||||
/*********************************************************************************
|
/*********************************************************************************
|
||||||
* ROM Information *
|
* ROM Information *
|
||||||
|
|
|
@ -1423,7 +1423,10 @@ int CALLBACK CCheats::ManageCheatsProc (HWND hDlg,DWORD uMsg,DWORD wParam, DWORD
|
||||||
WndPlac.length = sizeof(WndPlac);
|
WndPlac.length = sizeof(WndPlac);
|
||||||
GetWindowPlacement(hDlg, &WndPlac);
|
GetWindowPlacement(hDlg, &WndPlac);
|
||||||
|
|
||||||
|
LONG_PTR originalWndProc = GetWindowLongPtrW(hDlg, GWLP_WNDPROC);
|
||||||
|
SetWindowLongPtrW(hDlg, GWLP_WNDPROC, (LONG_PTR) DefWindowProcW);
|
||||||
SetWindowTextW(hDlg, GS(CHEAT_TITLE));
|
SetWindowTextW(hDlg, GS(CHEAT_TITLE));
|
||||||
|
SetWindowLongPtrW(hDlg, GWLP_WNDPROC, originalWndProc);
|
||||||
_this->m_hSelectCheat = (HWND)CreateDialogParam(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_Cheats_List),hDlg,(DLGPROC)CheatListProc,(LPARAM)_this);
|
_this->m_hSelectCheat = (HWND)CreateDialogParam(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_Cheats_List),hDlg,(DLGPROC)CheatListProc,(LPARAM)_this);
|
||||||
SetWindowPos((HWND)_this->m_hSelectCheat,HWND_TOP, 5, 8, 0, 0, SWP_NOSIZE);
|
SetWindowPos((HWND)_this->m_hSelectCheat,HWND_TOP, 5, 8, 0, 0, SWP_NOSIZE);
|
||||||
ShowWindow((HWND)_this->m_hSelectCheat,SW_SHOW);
|
ShowWindow((HWND)_this->m_hSelectCheat,SW_SHOW);
|
||||||
|
|
|
@ -53,7 +53,11 @@ DWORD CALLBACK RomInfoProc (HWND hDlg, DWORD uMsg, DWORD wParam, DWORD lParam) {
|
||||||
SetProp(hDlg,"this",(RomInformation *)lParam);
|
SetProp(hDlg,"this",(RomInformation *)lParam);
|
||||||
RomInformation * _this = (RomInformation *)lParam;
|
RomInformation * _this = (RomInformation *)lParam;
|
||||||
|
|
||||||
|
LONG_PTR originalWndProc = GetWindowLongPtrW(hDlg, GWLP_WNDPROC);
|
||||||
|
SetWindowLongPtrW(hDlg, GWLP_WNDPROC, (LONG_PTR) DefWindowProcW);
|
||||||
SetWindowTextW(hDlg, GS(INFO_TITLE));
|
SetWindowTextW(hDlg, GS(INFO_TITLE));
|
||||||
|
SetWindowLongPtrW(hDlg, GWLP_WNDPROC, originalWndProc);
|
||||||
|
|
||||||
SetDlgItemTextW(hDlg, IDC_ROM_NAME, GS(INFO_ROM_NAME_TEXT));
|
SetDlgItemTextW(hDlg, IDC_ROM_NAME, GS(INFO_ROM_NAME_TEXT));
|
||||||
SetDlgItemTextW(hDlg, IDC_FILE_NAME, GS(INFO_FILE_NAME_TEXT));
|
SetDlgItemTextW(hDlg, IDC_FILE_NAME, GS(INFO_FILE_NAME_TEXT));
|
||||||
SetDlgItemTextW(hDlg, IDC_LOCATION, GS(INFO_LOCATION_TEXT));
|
SetDlgItemTextW(hDlg, IDC_LOCATION, GS(INFO_LOCATION_TEXT));
|
||||||
|
@ -65,6 +69,7 @@ DWORD CALLBACK RomInfoProc (HWND hDlg, DWORD uMsg, DWORD wParam, DWORD lParam) {
|
||||||
SetDlgItemTextW(hDlg, IDC_CRC1, GS(INFO_CRC1_TEXT));
|
SetDlgItemTextW(hDlg, IDC_CRC1, GS(INFO_CRC1_TEXT));
|
||||||
SetDlgItemTextW(hDlg, IDC_CRC2, GS(INFO_CRC2_TEXT));
|
SetDlgItemTextW(hDlg, IDC_CRC2, GS(INFO_CRC2_TEXT));
|
||||||
SetDlgItemTextW(hDlg, IDC_CIC_CHIP, GS(INFO_CIC_CHIP_TEXT));
|
SetDlgItemTextW(hDlg, IDC_CIC_CHIP, GS(INFO_CIC_CHIP_TEXT));
|
||||||
|
SetDlgItemTextW(hDlg, IDC_CLOSE_BUTTON, GS(BOTTOM_CLOSE));
|
||||||
|
|
||||||
SetDlgItemText(hDlg,IDC_INFO_ROMNAME,_this->m_pRomInfo->GetRomName().c_str());
|
SetDlgItemText(hDlg,IDC_INFO_ROMNAME,_this->m_pRomInfo->GetRomName().c_str());
|
||||||
|
|
||||||
|
@ -124,6 +129,8 @@ DWORD CALLBACK RomInfoProc (HWND hDlg, DWORD uMsg, DWORD wParam, DWORD lParam) {
|
||||||
sprintf(&String[1],"CIC-NUS-610%d",_this->m_pRomInfo->CicChipID());
|
sprintf(&String[1],"CIC-NUS-610%d",_this->m_pRomInfo->CicChipID());
|
||||||
}
|
}
|
||||||
SetDlgItemText(hDlg,IDC_INFO_CIC,String);
|
SetDlgItemText(hDlg,IDC_INFO_CIC,String);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
|
|
|
@ -25,7 +25,8 @@ COptionsShortCutsPage::COptionsShortCutsPage (HWND hParent, const RECT & rcDispa
|
||||||
SetDlgItemTextW(m_hWnd, IDC_S_SELECT_SHORT,GS(ACCEL_SELKEY_TITLE));
|
SetDlgItemTextW(m_hWnd, IDC_S_SELECT_SHORT,GS(ACCEL_SELKEY_TITLE));
|
||||||
SetDlgItemTextW(m_hWnd, IDC_S_CURRENT_ASSIGN,GS(ACCEL_ASSIGNEDTO_TITLE));
|
SetDlgItemTextW(m_hWnd, IDC_S_CURRENT_ASSIGN,GS(ACCEL_ASSIGNEDTO_TITLE));
|
||||||
SetDlgItemTextW(m_hWnd, IDC_ASSIGN,GS(ACCEL_ASSIGN_BTN));
|
SetDlgItemTextW(m_hWnd, IDC_ASSIGN,GS(ACCEL_ASSIGN_BTN));
|
||||||
SetDlgItemTextW(m_hWnd, IDC_REMOVE,GS(ACCEL_REMOVE_BTN));
|
SetDlgItemTextW(m_hWnd, IDC_REMOVE,GS(ACCEL_REMOVE_BTN));
|
||||||
|
SetDlgItemTextW(m_hWnd, IDC_KEY_PROMPT, GS(ACCEL_DETECTKEY));
|
||||||
|
|
||||||
m_CreateNewShortCut.AttachToDlgItem(m_hWnd,IDC_S_SELECT_SHORT);
|
m_CreateNewShortCut.AttachToDlgItem(m_hWnd,IDC_S_SELECT_SHORT);
|
||||||
m_CpuState.Attach(GetDlgItem(IDC_C_CPU_STATE));
|
m_CpuState.Attach(GetDlgItem(IDC_C_CPU_STATE));
|
||||||
|
|
Loading…
Reference in New Issue