summaryrefslogtreecommitdiffstats
path: root/src/core/Frontend.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-05-28 11:46:51 +0200
committereray orçunus <erayorcunus@gmail.com>2020-05-28 11:46:51 +0200
commite6401bce181b2a9eb1ba31db0945e79277207a23 (patch)
tree1b5ba680e2f51ff00dbef7e48dc999be66066fec /src/core/Frontend.cpp
parentconfig reorganization (diff)
downloadre3-e6401bce181b2a9eb1ba31db0945e79277207a23.tar
re3-e6401bce181b2a9eb1ba31db0945e79277207a23.tar.gz
re3-e6401bce181b2a9eb1ba31db0945e79277207a23.tar.bz2
re3-e6401bce181b2a9eb1ba31db0945e79277207a23.tar.lz
re3-e6401bce181b2a9eb1ba31db0945e79277207a23.tar.xz
re3-e6401bce181b2a9eb1ba31db0945e79277207a23.tar.zst
re3-e6401bce181b2a9eb1ba31db0945e79277207a23.zip
Diffstat (limited to '')
-rw-r--r--src/core/Frontend.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp
index 53a95ae6..cdacc0a4 100644
--- a/src/core/Frontend.cpp
+++ b/src/core/Frontend.cpp
@@ -3568,6 +3568,9 @@ CMenuManager::Process(void)
}
#endif
if (CheckSlotDataValid(m_nCurrSaveSlot)) {
+#ifdef USE_DEBUG_SCRIPT_LOADER
+ scriptToLoad = 0;
+#endif
TheCamera.m_bUseMouse3rdPerson = m_ControlMethod == CONTROL_STANDARD;
if (m_PrefsVsyncDisp != m_PrefsVsync)
m_PrefsVsync = m_PrefsVsyncDisp;
@@ -3688,6 +3691,24 @@ CMenuManager::ProcessButtonPresses(void)
bool assumeIncrease = false;
#endif
+#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) {
+ scriptToLoad = 1;
+ DoSettingsBeforeStartingAGame();
+ return;
+ }
+#elif defined _WIN32
+ if (GetAsyncKeyState('R') & 0x8000) {
+ scriptToLoad = 1;
+ DoSettingsBeforeStartingAGame();
+ return;
+ }
+#endif
+ }
+#endif
+
if (!m_bShowMouse && (m_nMouseOldPosX != m_nMousePosX || m_nMouseOldPosY != m_nMousePosY)) {
m_bShowMouse = true;
}