From 4c8b52fc94c04c4b3d338c2501971ae348f5b3e5 Mon Sep 17 00:00:00 2001 From: navewindre Date: Tue, 16 Jul 2024 07:19:43 +0200 Subject: =?UTF-8?q?=E3=82=84=E3=83=BC=E3=83=BC=E3=83=BC=E3=83=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/source.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/source.cpp') diff --git a/src/source.cpp b/src/source.cpp index 1ce0754..b27149f 100644 --- a/src/source.cpp +++ b/src/source.cpp @@ -1,6 +1,8 @@ //|_ _ _. _ ._ |_ _. _ | //| | (/_ (_| \/ (/_ | | | | (_| (_ |< +//#define PERF_DEBUG 1 + #include "cs2/hack.h" #include "conin.h" #include "menu.h" @@ -9,18 +11,10 @@ bool run() { con_init(); PROCESS64* p = hack_init(); - Sleep( 1000 ); gcfg.load(); - menu_show_ui( p ); - for( ;; ) { - if( !hack_run( p ) ) { - nt_close64( p->get_base() ); - u_sleep( 5 * T_SEC ); - break; - } - } + for( ; hack_run( p ); ); return false; } -- cgit v1.2.3