diff options
author | withmorten <morten.with@gmail.com> | 2021-07-15 23:09:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 23:09:28 +0200 |
commit | 8018e40ebf2e7033e1929b4ed638afb3de7da692 (patch) | |
tree | 8d6aad5743586ae82da644338f332ec34c179aa7 /src/control/Script6.cpp | |
parent | Make PS2 VB files work together with PC audio files (diff) | |
parent | Fix Cheat menu debug script loader (diff) | |
download | re3-8018e40ebf2e7033e1929b4ed638afb3de7da692.tar re3-8018e40ebf2e7033e1929b4ed638afb3de7da692.tar.gz re3-8018e40ebf2e7033e1929b4ed638afb3de7da692.tar.bz2 re3-8018e40ebf2e7033e1929b4ed638afb3de7da692.tar.lz re3-8018e40ebf2e7033e1929b4ed638afb3de7da692.tar.xz re3-8018e40ebf2e7033e1929b4ed638afb3de7da692.tar.zst re3-8018e40ebf2e7033e1929b4ed638afb3de7da692.zip |
Diffstat (limited to 'src/control/Script6.cpp')
-rw-r--r-- | src/control/Script6.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/control/Script6.cpp b/src/control/Script6.cpp index 31be6987..c9b2b070 100644 --- a/src/control/Script6.cpp +++ b/src/control/Script6.cpp @@ -305,7 +305,11 @@ int8 CRunningScript::ProcessCommands1000To1099(int32 command) CTimer::Suspend(); int offset = CTheScripts::MultiScriptArray[ScriptParams[0]]; 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); |