diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-08 02:37:14 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-08 02:37:14 +0200 |
commit | 72f67809059c732588ac29eedf8a10f9156b27b4 (patch) | |
tree | b71ff78f38f6bbea9c032fdbd9e799616524b5a7 /src/core | |
parent | fix macro redefinition warnings on win-glfw build (diff) | |
download | re3-72f67809059c732588ac29eedf8a10f9156b27b4.tar re3-72f67809059c732588ac29eedf8a10f9156b27b4.tar.gz re3-72f67809059c732588ac29eedf8a10f9156b27b4.tar.bz2 re3-72f67809059c732588ac29eedf8a10f9156b27b4.tar.lz re3-72f67809059c732588ac29eedf8a10f9156b27b4.tar.xz re3-72f67809059c732588ac29eedf8a10f9156b27b4.tar.zst re3-72f67809059c732588ac29eedf8a10f9156b27b4.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Frontend.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp index 13db6b98..632a69ab 100644 --- a/src/core/Frontend.cpp +++ b/src/core/Frontend.cpp @@ -4558,19 +4558,11 @@ CMenuManager::ProcessUserInput(uint8 goDown, uint8 goUp, uint8 optionSelected, u #ifdef USE_DEBUG_SCRIPT_LOADER if (m_nCurrScreen == MENUPAGE_START_MENU || m_nCurrScreen == MENUPAGE_NEW_GAME || m_nCurrScreen == MENUPAGE_NEW_GAME_RELOAD) { -#ifdef RW_GL3 - if (glfwGetKey(PSGLOBAL(window), GLFW_KEY_R) == GLFW_PRESS) { + if (CPad::GetPad(0)->GetChar('R')) { scriptToLoad = 1; DoSettingsBeforeStartingAGame(); return; } -#elif defined _WIN32 - if (GetAsyncKeyState('R') & 0x8000) { - scriptToLoad = 1; - DoSettingsBeforeStartingAGame(); - return; - } -#endif } #endif |