mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Update ui menus AFTER loading lang ini.
This commit is contained in:
parent
3525498c61
commit
92c4c5825f
4 changed files with 3 additions and 9 deletions
|
@ -156,6 +156,7 @@ void WindowsHost::ShutdownSound()
|
|||
|
||||
void WindowsHost::UpdateUI()
|
||||
{
|
||||
MainWindow::TranslateMenus();
|
||||
MainWindow::Update();
|
||||
}
|
||||
|
||||
|
|
|
@ -78,8 +78,6 @@ extern InputState input_state;
|
|||
|
||||
#define TIMER_CURSORUPDATE 1
|
||||
#define TIMER_CURSORMOVEUPDATE 2
|
||||
#define TIMER_TRANSLATE 3
|
||||
#define TRANSLATE_INTERVAL_MS 100
|
||||
#define CURSORUPDATE_INTERVAL_MS 50
|
||||
#define CURSORUPDATE_MOVE_TIMESPAN_MS 500
|
||||
|
||||
|
@ -571,7 +569,6 @@ namespace MainWindow
|
|||
RegisterRawInputDevices(dev, 2, sizeof(RAWINPUTDEVICE));
|
||||
|
||||
SetFocus(hwndDisplay);
|
||||
SetTimer(hwndMain, TIMER_TRANSLATE, TRANSLATE_INTERVAL_MS, 0);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -828,11 +825,6 @@ namespace MainWindow
|
|||
hideCursor = true;
|
||||
KillTimer(hWnd, TIMER_CURSORMOVEUPDATE);
|
||||
return 0;
|
||||
|
||||
case TIMER_TRANSLATE:
|
||||
KillTimer(hWnd, TIMER_TRANSLATE);
|
||||
TranslateMenus();
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -54,4 +54,5 @@ namespace MainWindow
|
|||
void SaveStateActionFinished(bool result, void *userdata);
|
||||
void _ViewFullScreen(HWND hWnd);
|
||||
void _ViewNormal(HWND hWnd);
|
||||
void TranslateMenus();
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
|
|||
|
||||
wchar_t modulePath[MAX_PATH];
|
||||
GetModuleFileName(NULL, modulePath, MAX_PATH);
|
||||
for (int i = wcslen(modulePath) - 1; i > 0; i--) {
|
||||
for (size_t i = wcslen(modulePath) - 1; i > 0; i--) {
|
||||
if (modulePath[i] == '\\') {
|
||||
modulePath[i] = 0;
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue