summaryrefslogtreecommitdiff
path: root/internal_rewrite/shut_down.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-09-09 18:28:04 +0200
committernavewindre <boneyaard@gmail.com>2018-09-09 18:28:04 +0200
commit215818ddedc02be3a1a5c2be3912abdbcd29dd72 (patch)
tree16453999d9380f43a6f436e491e63aa58ac7e764 /internal_rewrite/shut_down.cpp
parent620f39df29fed446ab007e03c7b071f635379f1f (diff)
detours etc
Diffstat (limited to 'internal_rewrite/shut_down.cpp')
-rw-r--r--internal_rewrite/shut_down.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/internal_rewrite/shut_down.cpp b/internal_rewrite/shut_down.cpp
index 9a0ec0d..c3d2a95 100644
--- a/internal_rewrite/shut_down.cpp
+++ b/internal_rewrite/shut_down.cpp
@@ -1,12 +1,18 @@
#include "hooks.hpp"
#include "chams.hpp"
#include "base_cheat.hpp"
+#include "detours.h"
void __fastcall hooks::shut_down( void* ecx_, void* edx_ ) {
- static auto original_fn = g_csgo.m_chl->get_old_function< decltype( &shut_down ) >( 3 );
+ static auto original_fn = shut_down_o;
g_csgo.m_engine( )->ClientCmd_Unrestricted( xors( "host_writeconfig" ) );
//fuck you
+
+ memory::detours.restore( );
+
+ g_con->destroy( );
+
abort( );
g_cheat.m_chams.m_materials.destroy_materials( );