File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #include "../../ue/Engine.h"
4
+ #include "../../menu/Menu.h"
5
+ #include "../../settings/Settings.h"
6
+
7
+ void PostRender (UGameViewportClient * UGameViewportClient , Canvas * canvas )
8
+ {
9
+ do {
10
+ if (Settings .MISC .Unload ) {
11
+ Settings .MISC .Unload = false;
12
+ return Hook ::UnHook ();
13
+ }
14
+
15
+ ZeroGUI ::SetupCanvas (canvas );
16
+ Menu ::Tick ();
17
+
18
+ UWorld * World = * (UWorld * * )(WRLD );
19
+ if (!World ) break ;
20
+
21
+ UGameInstance * OwningGameInstance = World -> OwningGameInstance ;
22
+ if (!OwningGameInstance ) break ;
23
+
24
+ TArray < UPlayer * > LocalPlayers = OwningGameInstance -> LocalPlayers ;
25
+
26
+ UPlayer * LocalPlayer = LocalPlayers [0 ];
27
+ if (!LocalPlayer ) break ;
28
+
29
+ APlayerController * PlayerController = LocalPlayer -> PlayerController ;
30
+ if (!PlayerController ) break ;
31
+
32
+ //hook->features->handle(PlayerController);
33
+ } while (false);
34
+
35
+ return Hook ::OriginalPostRender (UGameViewportClient , canvas );
36
+ }
You can’t perform that action at this time.
0 commit comments