summaryrefslogtreecommitdiffstats
path: root/src/control/Script6.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-07-15 23:09:28 +0200
committerGitHub <noreply@github.com>2021-07-15 23:09:28 +0200
commit8018e40ebf2e7033e1929b4ed638afb3de7da692 (patch)
tree8d6aad5743586ae82da644338f332ec34c179aa7 /src/control/Script6.cpp
parentMake PS2 VB files work together with PC audio files (diff)
parentFix Cheat menu debug script loader (diff)
downloadre3-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.cpp4
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);