From aa1c8171b2419d81bfd772eb9b0a35868e60e0c3 Mon Sep 17 00:00:00 2001 From: Daniel Seiller Date: Tue, 12 Mar 2019 23:58:05 +0100 Subject: [PATCH] Fix Scrap.Exit-Hook --- ScrapHacks/ScrapHack/ScrapHack.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/ScrapHacks/ScrapHack/ScrapHack.cpp b/ScrapHacks/ScrapHack/ScrapHack.cpp index 24faa26..a26ddab 100644 --- a/ScrapHacks/ScrapHack/ScrapHack.cpp +++ b/ScrapHacks/ScrapHack/ScrapHack.cpp @@ -179,14 +179,12 @@ void H_Exit(){ typedef void(_cdecl *t_func)(void); shared_ptr hook = Hook::get(H_Exit); DllUnload(mod); - hook->disable(); HWND hMainWindow = ptr(0x7FA830, 0x7c)[0]; SendMessage(hMainWindow, WM_CLOSE, 0, 0); return; } void hook_exit() { - //void* p_exit = ptr(0x7fa830,0x0, 0x20); Hook::addr(reinterpret_cast(0x4010c0), H_Exit); }