mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-22 09:09:15 +01:00
Fix Cheat menu debug script loader
This commit is contained in:
parent
33c45e4ae0
commit
12efd1209b
@ -4390,7 +4390,11 @@ CTheScripts::SwitchToMission(int32 mission)
|
||||
CTimer::Suspend();
|
||||
int offset = CTheScripts::MultiScriptArray[mission];
|
||||
CFileMgr::ChangeDir("\\");
|
||||
#ifdef USE_DEBUG_SCRIPT_LOADER
|
||||
int handle = open_script();
|
||||
#else
|
||||
int handle = CFileMgr::OpenFile("data\\main.scm", "rb");
|
||||
#endif
|
||||
CFileMgr::Seek(handle, offset, 0);
|
||||
CFileMgr::Read(handle, (const char*)&CTheScripts::ScriptSpace[SIZE_MAIN_SCRIPT], SIZE_MISSION_SCRIPT);
|
||||
CFileMgr::CloseFile(handle);
|
||||
|
Loading…
Reference in New Issue
Block a user