diff --git a/src/Components/Modules/Renderer.cpp b/src/Components/Modules/Renderer.cpp index 3a77a30e..f6af1fcb 100644 --- a/src/Components/Modules/Renderer.cpp +++ b/src/Components/Modules/Renderer.cpp @@ -2,7 +2,6 @@ namespace Components { - Utils::Hook Renderer::DrawFrameHook; Utils::Signal Renderer::FrameSignal; Utils::Signal Renderer::FrameOnceSignal; Utils::Signal Renderer::BackendFrameSignal; @@ -18,7 +17,8 @@ namespace Components call Renderer::FrameHandler popad - jmp Renderer::DrawFrameHook.original + push 5AC950h + retn } } @@ -40,8 +40,8 @@ namespace Components popad mov eax, ds:66E1BF0h - mov ecx, 536A85h - jmp ecx + push 536A85h + retn } } @@ -123,7 +123,7 @@ namespace Components // }); // Frame hook - Renderer::DrawFrameHook.initialize(0x5ACB99, Renderer::FrameStub, HOOK_CALL)->install(); + Utils::Hook(0x5ACB99, Renderer::FrameStub, HOOK_CALL).install()->quick(); Utils::Hook(0x536A80, Renderer::BackendFrameStub, HOOK_JUMP).install()->quick(); @@ -142,7 +142,6 @@ namespace Components Renderer::~Renderer() { - Renderer::DrawFrameHook.uninstall(); Renderer::BackendFrameSignal.clear(); Renderer::FrameOnceSignal.clear(); Renderer::FrameSignal.clear(); diff --git a/src/Components/Modules/Renderer.hpp b/src/Components/Modules/Renderer.hpp index 0edaf343..fedbe5c0 100644 --- a/src/Components/Modules/Renderer.hpp +++ b/src/Components/Modules/Renderer.hpp @@ -39,6 +39,5 @@ namespace Components static Utils::Signal BeginRecoverDeviceSignal; static Utils::Signal BackendFrameSignal; - static Utils::Hook DrawFrameHook; }; }