summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-08 02:37:14 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-08 02:37:14 +0200
commit72f67809059c732588ac29eedf8a10f9156b27b4 (patch)
treeb71ff78f38f6bbea9c032fdbd9e799616524b5a7 /src/core
parentfix macro redefinition warnings on win-glfw build (diff)
downloadre3-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.cpp10
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