diff options
| author | navewindre <nw@moneybot.cc> | 2024-07-12 00:55:39 +0200 |
|---|---|---|
| committer | navewindre <nw@moneybot.cc> | 2024-07-12 00:55:39 +0200 |
| commit | 2ebf959ec02048c15323e1bbfc63faedcf5067b6 (patch) | |
| tree | 18862ba5d3b4be44294c0a81317d31eace7ee150 /src/source.cpp | |
| parent | ecca2728f1a583ea484f8bdcda390a30e4906f1d (diff) | |
ha haaa
Diffstat (limited to 'src/source.cpp')
| -rw-r--r-- | src/source.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/source.cpp b/src/source.cpp new file mode 100644 index 0000000..965820f --- /dev/null +++ b/src/source.cpp @@ -0,0 +1,39 @@ +//|_ _ _. _ ._ |_ _. _ | +//| | (/_ (_| \/ (/_ | | | | (_| (_ |< + +#include "csgo/hack.h" +#include "util.h" +#include "conin.h" +#include "menu.h" +#include "csgo/convar.h" + +bool run() { + con_init(); + PROCESS32* p = hack_init(); + + Sleep( 1000 ); + settings.load(); + menu_show_ui( p ); + + for( ;; ) { + if( !hack_run( p ) ) { + nt_close64( p->get_base() ); + u_sleep( 5 * T_SEC ); + break; + } + } + + return false; +} + +I32 __cdecl main() { + con_init(); + + u_set_debug_privilege(); + u_thread_create( &con_hook_handler ); + u_thread_create( &con_handler ); + + for( ; !run(); ); + + return 0; +} |
