diff options
| author | navewindre <nw@moneybot.cc> | 2024-07-12 05:40:41 +0200 |
|---|---|---|
| committer | navewindre <nw@moneybot.cc> | 2024-07-12 05:40:41 +0200 |
| commit | 28f41cf689def99fb586bfca47b7e1786227a5a2 (patch) | |
| tree | 4a843c7785035ca548625ccf988ac924b8815f85 /src/menu.cpp | |
| parent | 2ebf959ec02048c15323e1bbfc63faedcf5067b6 (diff) | |
base shit
Diffstat (limited to 'src/menu.cpp')
| -rw-r--r-- | src/menu.cpp | 68 |
1 files changed, 21 insertions, 47 deletions
diff --git a/src/menu.cpp b/src/menu.cpp index a1c8fc8..27c8bae 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -4,9 +4,11 @@ #include "menu.h" #include "conin.h" -#include "csgo/hack.h" +#include "cs2/hack.h" -CSGO* csgop; +PROCESS64* cs2p; + +I32 perf_tickrate = 2048; I8 menu_page = 1; MENU_PAGE menu_pages[MENU_PAGE_MAX - MENU_PAGE_MIN + 1]; @@ -70,7 +72,7 @@ void show_page_0() { con_set_line_subtext( 0, "[ENTER]", false, CONFG_LIGHTBLUE ); con_set_line_callback( 0, []( CON_LINE* self, U8 action ) { if( action == LINE_ACTION_ENTER ) { - settings.load(); + gcfg.load(); } } ); @@ -78,7 +80,7 @@ void show_page_0() { con_set_line_subtext( 1, "[ENTER]", false, CONFG_LIGHTBLUE ); con_set_line_callback( 1, []( CON_LINE* self, U8 action ) { if( action == LINE_ACTION_ENTER ) { - settings.save(); + gcfg.save(); } } ); @@ -113,12 +115,12 @@ void show_page_0() { } void show_page_1() { - static SETTING<bool>& bhop_active = *settings.find<bool>( "bhop_active"fnv ); - static SETTING<bool>& chams_active = *settings.find<bool>( "chams_active"fnv ); - static SETTING<bool>& glow_active = *settings.find<bool>( "glow_active"fnv ); - static SETTING<bool>& nightmode_active = *settings.find<bool>( "nightmode_active"fnv ); - static SETTING<bool>& noflash_active = *settings.find<bool>( "noflash_active"fnv ); - static SETTING<bool>& clantag_active = *settings.find<bool>( "clantag_active"fnv ); + /*static SETTING<bool>& bhop_active = *gcfg.find<bool>( "bhop_active"fnv ); + static SETTING<bool>& chams_active = *gcfg.find<bool>( "chams_active"fnv ); + static SETTING<bool>& glow_active = *gcfg.find<bool>( "glow_active"fnv ); + static SETTING<bool>& nightmode_active = *gcfg.find<bool>( "nightmode_active"fnv ); + static SETTING<bool>& noflash_active = *gcfg.find<bool>( "noflash_active"fnv ); + static SETTING<bool>& clantag_active = *gcfg.find<bool>( "clantag_active"fnv ); con_set_line_text( 0,"bhop",false ); con_set_line_subtext( @@ -228,19 +230,6 @@ void show_page_1() { ); } ); - con_set_line_text( 6, "dump all classes to classes.dump", false ); - con_set_line_subtext( - 6, - key_titles[VK_RETURN], - false, - CONFG_LIGHTBLUE - ); - - con_set_line_callback( 6, []( CON_LINE*, U8 action ) { - if( action == LINE_ACTION_ENTER ) - csgo_dump_classes( csgop ); - } ); - con_set_line_text( 7, "dump syscalls to syscall_arch.dump", false ); con_set_line_subtext( @@ -253,28 +242,15 @@ void show_page_1() { con_set_line_callback( 7, []( CON_LINE*, U8 action ) { if( action == LINE_ACTION_ENTER ) syscall_dump_to_file(); - } ); - - con_set_line_text( 8, "dump interfaces to interfaces.dump", false ); - con_set_line_subtext( - 8, - key_titles[VK_RETURN], - false, - CONFG_LIGHTBLUE - ); - - con_set_line_callback( 8, []( CON_LINE*, U8 action ) { - if( action == LINE_ACTION_ENTER ) - csgo_dump_ifaces_to_file( csgop ); - } ); + } );*/ } void show_page_2() { - static SETTING<bool>& aim_active = *settings.find<bool>( "aim_active"fnv ); - static SETTING<bool>& crosshair_active = *settings.find<bool>( "crosshair_active"fnv ); - static SETTING<bool>& rcs_active = *settings.find<bool>( "rcs_active"fnv ); - static SETTING<I32>& triggerbot_key = *settings.find<I32>( "triggerbot_key"fnv ); - static SETTING<bool>& triggerteam_active = *settings.find<bool>( "triggerteam_active"fnv ); + /*static SETTING<bool>& aim_active = *gcfg.find<bool>( "aim_active"fnv ); + static SETTING<bool>& crosshair_active = *gcfg.find<bool>( "crosshair_active"fnv ); + static SETTING<bool>& rcs_active = *gcfg.find<bool>( "rcs_active"fnv ); + static SETTING<I32>& triggerbot_key = *gcfg.find<I32>( "triggerbot_key"fnv ); + static SETTING<bool>& triggerteam_active = *gcfg.find<bool>( "triggerteam_active"fnv ); con_set_line_text( 0,"aim assist",false ); con_set_line_subtext( @@ -360,12 +336,10 @@ void show_page_2() { self->active, triggerteam_active? CONFG_LIGHTGREEN : CONFG_LIGHTRED ); - }); + });*/ } -void menu_show_ui( PROCESS32 *p ) { - csgop = (CSGO*)p; - +void menu_show_ui( PROCESS64 *p ) { con_clear(); con_capturing_input = true; @@ -378,6 +352,6 @@ void menu_show_ui( PROCESS32 *p ) { con_set_bottomline_text( "LOCALPLAYER: %08X | FLAGS: %08X | menu", - p->read<U32>( localplayer_ptr ),0x0 + 0x0,0x0 ); }
\ No newline at end of file |
