mirror of
https://github.com/halpz/re3.git
synced 2025-04-30 01:57:57 +03:00
Frontend customization functions, freecam toggle, minor things
This commit is contained in:
parent
d9d57f12fc
commit
329a387fdf
12 changed files with 531 additions and 121 deletions
|
@ -1,4 +1,3 @@
|
|||
#define WITHWINDOWS // for our script loading hack
|
||||
#include "common.h"
|
||||
|
||||
#include "Script.h"
|
||||
|
@ -504,10 +503,22 @@ void CRunningScript::Init()
|
|||
}
|
||||
|
||||
#ifdef USE_DEBUG_SCRIPT_LOADER
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
int open_script()
|
||||
{
|
||||
static int scriptToLoad = 0;
|
||||
|
||||
// Doesn't work because of CGame::Initialise is blocking
|
||||
/*
|
||||
if (glfwGetKey(PSGLOBAL(window), GLFW_KEY_G) == GLFW_PRESS)
|
||||
scriptToLoad = 0;
|
||||
if (glfwGetKey(PSGLOBAL(window), GLFW_KEY_R) == GLFW_PRESS)
|
||||
scriptToLoad = 1;
|
||||
if (glfwGetKey(PSGLOBAL(window), GLFW_KEY_D) == GLFW_PRESS)
|
||||
scriptToLoad = 2;
|
||||
*/
|
||||
#ifdef _WIN32
|
||||
if (GetAsyncKeyState('G') & 0x8000)
|
||||
scriptToLoad = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue