Skip to content

Commit efeba71

Browse files
committed
Move _Load_Game_Post_Load_Game hook to avoid patching conflict with Vinifera
1 parent 9a6440c commit efeba71

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/savegame.asm

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
cextern Anticheat1
66
cextern AntiCheatArray
77

8-
@LJMP 0x005D6B92, _Load_Game_Post_Load_Game_Hook
8+
@LJMP 0x005DC49B, _Load_Game_Post_Load_Game_Hook
99
@LJMP 0x005D4FF5, _Save_Game_Pre_Save_Game_Hook
1010

1111
_Save_Game_Pre_Save_Game_Hook:
@@ -31,11 +31,14 @@ _Load_Game_Post_Load_Game_Hook:
3131
mov al, byte [eax+0x1D91]
3232
mov byte [0x007E2500], al
3333

34-
mov ecx, MouseClass_Map
35-
call 0x005F3E20
34+
; mov ecx, MouseClass_Map
35+
; call 0x005F3E20 SidebarClass::Recalc
3636
37-
call 0x004082D0
38-
jmp 0x005D6B97
37+
; call 0x004082D0 WWDebug_Printf
38+
; jmp 0x005D6B97
39+
40+
mov esi, [Frame]
41+
jmp 0x005DC4A1
3942

4043
; Reset auto-save timer on scenario restart
4144
; Hooks beginning of Do_Restart function

0 commit comments

Comments
 (0)