From d164e3373108d0c0f83452fbea22f8569b84eec6 Mon Sep 17 00:00:00 2001 From: salmonik Date: Mon, 26 Oct 2026 17:53:40 +0100 Subject: Docs/cleanup: refresh CONTEXT, update ISurface status, remove dead code - rewrite CONTEXT.md for the current architecture, interfaces, netvars, menu tree, bones/ESP, aimbot/vischeck, triggerbot, silent aim and ABH - update ISURFACE_STATUS.md: DrawLine slot, current menu/config path, 9 build TUs, current file layout - remove the stale root-level `tree` file - drop unused class_health_off/per-class health scan (NPC HP is not networked), surf_call_slot, and unused scancode helpers --- src/menu.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/menu.cpp') diff --git a/src/menu.cpp b/src/menu.cpp index c3bb9ae..d628873 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -217,22 +217,6 @@ static std::string config_path() { return dir + "/config"; } -[[maybe_unused]] static const char *sdl_scancode_name(int sc) { - if (sc == 0) - return "None"; - static char buf[32]; - snprintf(buf, sizeof(buf), "Key%d", sc); - return buf; -} - -[[maybe_unused]] static int parse_sdl_scancode(const char *s) { - if (strcmp(s, "None") == 0 || strcmp(s, "") == 0) - return 0; - if (strncmp(s, "Key", 3) == 0) - return atoi(s + 3); - return 0; -} - static void config_save() { FILE *f = fopen(config_path().c_str(), "w"); if (!f) @@ -758,14 +742,6 @@ void outer_draw() { surf_pop_make_current(panel); } -// Call an arbitrary ISurface vtable slot with up to 2 long args (cdecl thiscall -// on i386: this first, rest on stack). -long surf_call_slot(void *surf, int slot, long a1, long a2) { - void **vt = *(void ***)surf; - using Fn = long (*)(void *, long, long); - return ((Fn)vt[slot])(surf, a1, a2); -} - // --------------------------------------------------------------------------- // ISurface discovery — try known modules and all loaded .so files // --------------------------------------------------------------------------- -- cgit v1.2.3