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()
|
void WindowsHost::UpdateUI()
|
||||||
{
|
{
|
||||||
|
MainWindow::TranslateMenus();
|
||||||
MainWindow::Update();
|
MainWindow::Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,8 +78,6 @@ extern InputState input_state;
|
||||||
|
|
||||||
#define TIMER_CURSORUPDATE 1
|
#define TIMER_CURSORUPDATE 1
|
||||||
#define TIMER_CURSORMOVEUPDATE 2
|
#define TIMER_CURSORMOVEUPDATE 2
|
||||||
#define TIMER_TRANSLATE 3
|
|
||||||
#define TRANSLATE_INTERVAL_MS 100
|
|
||||||
#define CURSORUPDATE_INTERVAL_MS 50
|
#define CURSORUPDATE_INTERVAL_MS 50
|
||||||
#define CURSORUPDATE_MOVE_TIMESPAN_MS 500
|
#define CURSORUPDATE_MOVE_TIMESPAN_MS 500
|
||||||
|
|
||||||
|
@ -571,7 +569,6 @@ namespace MainWindow
|
||||||
RegisterRawInputDevices(dev, 2, sizeof(RAWINPUTDEVICE));
|
RegisterRawInputDevices(dev, 2, sizeof(RAWINPUTDEVICE));
|
||||||
|
|
||||||
SetFocus(hwndDisplay);
|
SetFocus(hwndDisplay);
|
||||||
SetTimer(hwndMain, TIMER_TRANSLATE, TRANSLATE_INTERVAL_MS, 0);
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -828,11 +825,6 @@ namespace MainWindow
|
||||||
hideCursor = true;
|
hideCursor = true;
|
||||||
KillTimer(hWnd, TIMER_CURSORMOVEUPDATE);
|
KillTimer(hWnd, TIMER_CURSORMOVEUPDATE);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case TIMER_TRANSLATE:
|
|
||||||
KillTimer(hWnd, TIMER_TRANSLATE);
|
|
||||||
TranslateMenus();
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -54,4 +54,5 @@ namespace MainWindow
|
||||||
void SaveStateActionFinished(bool result, void *userdata);
|
void SaveStateActionFinished(bool result, void *userdata);
|
||||||
void _ViewFullScreen(HWND hWnd);
|
void _ViewFullScreen(HWND hWnd);
|
||||||
void _ViewNormal(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];
|
wchar_t modulePath[MAX_PATH];
|
||||||
GetModuleFileName(NULL, 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] == '\\') {
|
if (modulePath[i] == '\\') {
|
||||||
modulePath[i] = 0;
|
modulePath[i] = 0;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue