mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-08-17 20:11:42 +02:00
add debug script hotkey
This commit is contained in:
@@ -4157,12 +4157,22 @@ CMenuManager::ProcessButtonPresses(void)
|
|||||||
DoSettingsBeforeStartingAGame();
|
DoSettingsBeforeStartingAGame();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (glfwGetKey(PSGLOBAL(window), GLFW_KEY_D) == GLFW_PRESS) {
|
||||||
|
scriptToLoad = 2;
|
||||||
|
DoSettingsBeforeStartingAGame();
|
||||||
|
return;
|
||||||
|
}
|
||||||
#elif defined _WIN32
|
#elif defined _WIN32
|
||||||
if (GetAsyncKeyState('R') & 0x8000) {
|
if (GetAsyncKeyState('R') & 0x8000) {
|
||||||
scriptToLoad = 1;
|
scriptToLoad = 1;
|
||||||
DoSettingsBeforeStartingAGame();
|
DoSettingsBeforeStartingAGame();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (GetAsyncKeyState('D') & 0x8000) {
|
||||||
|
scriptToLoad = 2;
|
||||||
|
DoSettingsBeforeStartingAGame();
|
||||||
|
return;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user