diff options
author | aap <aap@papnet.eu> | 2019-07-07 19:04:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-07 19:04:59 +0200 |
commit | 62eaf1289141c1df9528c3f49ebd561ee15884c2 (patch) | |
tree | 2917a9073151f49e9499351e30cce5a1bc8d2a14 /src/core | |
parent | implemented CDoor (diff) | |
parent | IntoTheScripts! (diff) | |
download | re3-62eaf1289141c1df9528c3f49ebd561ee15884c2.tar re3-62eaf1289141c1df9528c3f49ebd561ee15884c2.tar.gz re3-62eaf1289141c1df9528c3f49ebd561ee15884c2.tar.bz2 re3-62eaf1289141c1df9528c3f49ebd561ee15884c2.tar.lz re3-62eaf1289141c1df9528c3f49ebd561ee15884c2.tar.xz re3-62eaf1289141c1df9528c3f49ebd561ee15884c2.tar.zst re3-62eaf1289141c1df9528c3f49ebd561ee15884c2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/config.h | 1 | ||||
-rw-r--r-- | src/core/re3.cpp | 23 |
2 files changed, 2 insertions, 22 deletions
diff --git a/src/core/config.h b/src/core/config.h index 8cb02190..c3b66ff7 100644 --- a/src/core/config.h +++ b/src/core/config.h @@ -114,3 +114,4 @@ enum Config { #define FIX_BUGS // fix bugs in the game, TODO: use this more #define KANGAROO_CHEAT #define ASPECT_RATIO_SCALE +#define USE_DEBUG_SCRIPT_LOADER
\ No newline at end of file diff --git a/src/core/re3.cpp b/src/core/re3.cpp index 9dc39d46..d6e81214 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -57,27 +57,6 @@ mysrand(unsigned int seed) myrand_seed = seed; } -int (*open_script_orig)(const char *path, const char *mode); -int -open_script(const char *path, const char *mode) -{ - static int scriptToLoad = 1; - - if(GetAsyncKeyState('G') & 0x8000) - scriptToLoad = 0; - if(GetAsyncKeyState('R') & 0x8000) - scriptToLoad = 1; - if(GetAsyncKeyState('D') & 0x8000) - scriptToLoad = 2; - - switch(scriptToLoad){ - case 0: return open_script_orig(path, mode); - case 1: return open_script_orig("main_freeroam.scm", mode); - case 2: return open_script_orig("main_d.scm", mode); - } - return open_script_orig(path, mode); -} - int gDbgSurf; void (*DebugMenuProcess)(void); @@ -356,7 +335,7 @@ patch() Patch<WORD>(0x5382BF, 0x0EEB); InjectHook(0x5382EC, HeadlightsFix, PATCH_JUMP); - InterceptCall(&open_script_orig, open_script, 0x438869); +// InterceptCall(&open_script_orig, open_script, 0x438869); // InterceptCall(&RsEventHandler_orig, delayedPatches10, 0x58275E); } |