mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-23 16:21:50 +01:00
Merge branch 'master' into miami
This commit is contained in:
commit
8d9508bda4
@ -729,6 +729,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");
|
||||||
@ -752,12 +757,6 @@ void CTheScripts::Init()
|
|||||||
UpsideDownCars.Init();
|
UpsideDownCars.Init();
|
||||||
StuckCars.Init();
|
StuckCars.Init();
|
||||||
#ifdef USE_DEBUG_SCRIPT_LOADER
|
#ifdef USE_DEBUG_SCRIPT_LOADER
|
||||||
// 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;
|
|
||||||
|
|
||||||
int mainf = OpenScript();
|
int mainf = OpenScript();
|
||||||
#else
|
#else
|
||||||
CFileMgr::SetDir("data");
|
CFileMgr::SetDir("data");
|
||||||
|
Loading…
Reference in New Issue
Block a user