summaryrefslogtreecommitdiffstats
path: root/src/menu.cpp
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-28 12:24:10 +0100
committersalmonik <salmonik@tuta.io>2026-10-28 12:24:10 +0100
commit16546e5818408f35adc60c2d937cf4541ff7840a (patch)
tree19c405c2c226e69f082d9465f9325c67bb1d0d92 /src/menu.cpp
parentItem ESP: recover CPhysicsProp model names from the server (diff)
downloadhl2h-16546e5818408f35adc60c2d937cf4541ff7840a.tar.gz
hl2h-16546e5818408f35adc60c2d937cf4541ff7840a.zip
Logging: per-session file and debug-gated verbose logs
- Open /tmp/hl2hake.log once in the library constructor with "w" so each session starts clean, use line buffering, flush each line, and close it via atexit. No more fopen/fclose per message. - Add logd() for verbose diagnostics, enabled only with HL2H_DEBUG=1. - Move ESP/NPC scans, item-prop/item-classification logs, aimbot/silent-aim/ melee/triggerbot/spread details, jumpbug tracking, bone dumps, netvar dumps, cmd-modified and ground-trace noise to logd(). - Keep logf() for lifecycle, config, warnings/errors, GUI open/close, item category/tagging summaries and item-crate detections so crate debugging works without the ESP stream. - Supply crates now respect the max-distance slider (user change), with the stale comment and CONTEXT updated. - Document HL2H_DEBUG=1 in play.sh and CONTEXT.
Diffstat (limited to '')
-rw-r--r--src/menu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/menu.cpp b/src/menu.cpp
index 9d07b72..6d7143d 100644
--- a/src/menu.cpp
+++ b/src/menu.cpp
@@ -682,7 +682,7 @@ void outer_draw() {
682 } 682 }
683 if (font_reset && g_font) { 683 if (font_reset && g_font) {
684 g_font = 0; 684 g_font = 0;
685 logf("font: reset (local entity change)"); 685 logd("font: reset (local entity change)");
686 } 686 }
687 687
688 bool overlay_font = true; 688 bool overlay_font = true;
@@ -697,7 +697,7 @@ void outer_draw() {
697 continue; 697 continue;
698 if (surf_set_font_glyph_set(g_font, families[fi], 16, 400, 0, 0, 0x400, 698 if (surf_set_font_glyph_set(g_font, families[fi], 16, 400, 0, 0, 0x400,
699 0x20, 0xFF)) { 699 0x20, 0xFF)) {
700 logf("outer_draw: font family %s", families[fi]); 700 logd("outer_draw: font family %s", families[fi]);
701 font_ok = true; 701 font_ok = true;
702 } else { 702 } else {
703 g_font = 0; 703 g_font = 0;