From f8f123c4d4f80975346e596123ee188c79aa5eca Mon Sep 17 00:00:00 2001 From: ApfelTeeSaft <91074565+ApfelTeeSaft@users.noreply.github.com> Date: Wed, 17 Jul 2024 17:31:44 +0200 Subject: [PATCH] Basic ProcessEvent hooking --- F4Menu/Hooks.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/F4Menu/Hooks.cpp b/F4Menu/Hooks.cpp index 68c1ca751..047a111ef 100644 --- a/F4Menu/Hooks.cpp +++ b/F4Menu/Hooks.cpp @@ -60,8 +60,6 @@ void SetupHooks() { uintptr_t processEventAddress = baseAddress + SDK::Offsets::ProcessEvent; std::cout << "ProcessEvent address: " << std::hex << processEventAddress << std::endl; - DumpMemory(processEventAddress, 256); - if (MH_CreateHook(reinterpret_cast(processEventAddress), &hkProcessEvent, reinterpret_cast(&oProcessEvent)) != MH_OK) { std::cerr << "Failed to create hook" << std::endl; return; @@ -72,7 +70,7 @@ void SetupHooks() { return; } - std::cout << "Hook successfully enabled" << std::endl; + std::cout << "Process Event Hook successfully enabled" << std::endl; } catch (const std::exception& e) { std::cerr << "Exception during hook setup: " << e.what() << std::endl;