diff options
author | aap <aap@papnet.eu> | 2019-06-12 12:34:22 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-12 12:34:22 +0200 |
commit | 58cb42ca24a7aaf4fb9497784a5168a1924b875a (patch) | |
tree | d7697a202a3f8fb822c7744ab235d7fed39b5ccd /src/re3.cpp | |
parent | Merge pull request #11 from Fire-Head/master (diff) | |
download | re3-58cb42ca24a7aaf4fb9497784a5168a1924b875a.tar re3-58cb42ca24a7aaf4fb9497784a5168a1924b875a.tar.gz re3-58cb42ca24a7aaf4fb9497784a5168a1924b875a.tar.bz2 re3-58cb42ca24a7aaf4fb9497784a5168a1924b875a.tar.lz re3-58cb42ca24a7aaf4fb9497784a5168a1924b875a.tar.xz re3-58cb42ca24a7aaf4fb9497784a5168a1924b875a.tar.zst re3-58cb42ca24a7aaf4fb9497784a5168a1924b875a.zip |
Diffstat (limited to 'src/re3.cpp')
-rw-r--r-- | src/re3.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/re3.cpp b/src/re3.cpp index cff70ff4..55ce5699 100644 --- a/src/re3.cpp +++ b/src/re3.cpp @@ -91,12 +91,9 @@ DebugMenuInit(void) } -int (*RsEventHandler_orig)(int a, int b); -int -delayedPatches10(int a, int b) +void +DebugMenuPopulate(void) { - DebugMenuInit(); - if(DebugMenuLoad()){ DebugMenuAddVarBool8("Debug", "Show Ped Road Groups", (int8*)&gbShowPedRoadGroups, nil); DebugMenuAddVarBool8("Debug", "Show Car Road Groups", (int8*)&gbShowCarRoadGroups, nil); @@ -110,9 +107,19 @@ delayedPatches10(int a, int b) DebugMenuAddCmd("Debug", "Start Credits", CCredits::Start); DebugMenuAddCmd("Debug", "Stop Credits", CCredits::Stop); } +} + +/* +int (*RsEventHandler_orig)(int a, int b); +int +delayedPatches10(int a, int b) +{ + DebugMenuInit(); + DebugMenuPopulate(); return RsEventHandler_orig(a, b); } +*/ void __declspec(naked) HeadlightsFix() { @@ -225,7 +232,7 @@ patch() InterceptCall(&open_script_orig, open_script, 0x438869); - InterceptCall(&RsEventHandler_orig, delayedPatches10, 0x58275E); +// InterceptCall(&RsEventHandler_orig, delayedPatches10, 0x58275E); } BOOL WINAPI |