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.h | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'src/menu.h') diff --git a/src/menu.h b/src/menu.h index f728c73..d235ae3 100644 --- a/src/menu.h +++ b/src/menu.h @@ -3,11 +3,12 @@ #pragma once -#include "process.h" +#include "process64.h" #include "util.h" #include "syscall.h" -#include "csgo/csgo.h" + +extern I32 perf_tickrate; static void syscall_dump_to_file() { static VECTOR< SYSCALL_ENTRY > syscalls = syscall_dump(); @@ -52,21 +53,6 @@ static void syscall_dump_to_file() { free( syscall_str ); } -static void csgo_dump_ifaces_to_file( CSGO* p ) { - std::vector< IFACE_ENTRY > ifaces = srceng_get_interfaces( p ); - static char iface_str[999999]{}; - - memset( iface_str, 0, sizeof( iface_str ) ); - char line_buf[256]{}; - for( auto& it : ifaces ) { - sprintf( line_buf, "%s -> %08x in [%s]\n", it.name.data, it.ptr, it.module_name.data ); - strcat( iface_str, line_buf ); - } - - FILE* dump = fopen( "./interfaces.dump", "w" ); - fwrite( iface_str, strlen( iface_str ), 1, dump ); - fclose( dump ); -} void show_paging( U8 num ); @@ -83,4 +69,4 @@ const I8 MENU_PAGE_MAX = 2; extern I8 menu_page; extern MENU_PAGE menu_pages[MENU_PAGE_MAX - MENU_PAGE_MIN + 1]; -extern void menu_show_ui( PROCESS32* p ); \ No newline at end of file +extern void menu_show_ui( PROCESS64* p ); \ No newline at end of file -- cgit v1.2.3