mirror of
https://github.com/halpz/re3.git
synced 2025-01-08 20:25:28 +00:00
merge
This commit is contained in:
commit
7b9d8c5a1f
|
@ -894,6 +894,11 @@ int CTheScripts::ScriptToLoad = 0;
|
||||||
|
|
||||||
int CTheScripts::OpenScript()
|
int CTheScripts::OpenScript()
|
||||||
{
|
{
|
||||||
|
// glfwGetKey doesn't work because of CGame::Initialise is blocking
|
||||||
|
CPad::UpdatePads();
|
||||||
|
if (CPad::GetPad(0)->GetChar('G')) ScriptToLoad = 0;
|
||||||
|
if (CPad::GetPad(0)->GetChar('R')) ScriptToLoad = 1;
|
||||||
|
if (CPad::GetPad(0)->GetChar('D')) ScriptToLoad = 2;
|
||||||
CFileMgr::ChangeDir("\\");
|
CFileMgr::ChangeDir("\\");
|
||||||
switch (ScriptToLoad) {
|
switch (ScriptToLoad) {
|
||||||
case 0: return CFileMgr::OpenFile("DATA\\main.scm", "rb");
|
case 0: return CFileMgr::OpenFile("DATA\\main.scm", "rb");
|
||||||
|
|
Loading…
Reference in a new issue