From 28f41cf689def99fb586bfca47b7e1786227a5a2 Mon Sep 17 00:00:00 2001 From: navewindre Date: Fri, 12 Jul 2024 05:40:41 +0200 Subject: base shit --- src/menu.cpp | 68 +++++++++++++++++++----------------------------------------- 1 file changed, 21 insertions(+), 47 deletions(-) (limited to 'src/menu.cpp') 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& bhop_active = *settings.find( "bhop_active"fnv ); - static SETTING& chams_active = *settings.find( "chams_active"fnv ); - static SETTING& glow_active = *settings.find( "glow_active"fnv ); - static SETTING& nightmode_active = *settings.find( "nightmode_active"fnv ); - static SETTING& noflash_active = *settings.find( "noflash_active"fnv ); - static SETTING& clantag_active = *settings.find( "clantag_active"fnv ); + /*static SETTING& bhop_active = *gcfg.find( "bhop_active"fnv ); + static SETTING& chams_active = *gcfg.find( "chams_active"fnv ); + static SETTING& glow_active = *gcfg.find( "glow_active"fnv ); + static SETTING& nightmode_active = *gcfg.find( "nightmode_active"fnv ); + static SETTING& noflash_active = *gcfg.find( "noflash_active"fnv ); + static SETTING& clantag_active = *gcfg.find( "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& aim_active = *settings.find( "aim_active"fnv ); - static SETTING& crosshair_active = *settings.find( "crosshair_active"fnv ); - static SETTING& rcs_active = *settings.find( "rcs_active"fnv ); - static SETTING& triggerbot_key = *settings.find( "triggerbot_key"fnv ); - static SETTING& triggerteam_active = *settings.find( "triggerteam_active"fnv ); + /*static SETTING& aim_active = *gcfg.find( "aim_active"fnv ); + static SETTING& crosshair_active = *gcfg.find( "crosshair_active"fnv ); + static SETTING& rcs_active = *gcfg.find( "rcs_active"fnv ); + static SETTING& triggerbot_key = *gcfg.find( "triggerbot_key"fnv ); + static SETTING& triggerteam_active = *gcfg.find( "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( localplayer_ptr ),0x0 + 0x0,0x0 ); } \ No newline at end of file -- cgit v1.2.3