diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-28 12:24:10 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-28 12:24:10 +0100 |
| commit | 16546e5818408f35adc60c2d937cf4541ff7840a (patch) | |
| tree | 19c405c2c226e69f082d9465f9325c67bb1d0d92 /src/cinput.cpp | |
| parent | Item ESP: recover CPhysicsProp model names from the server (diff) | |
| download | hl2h-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 'src/cinput.cpp')
| -rw-r--r-- | src/cinput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cinput.cpp b/src/cinput.cpp index f466c53..08686a1 100644 --- a/src/cinput.cpp +++ b/src/cinput.cpp | |||
| @@ -225,7 +225,7 @@ bool find_input_global() { | |||
| 225 | uintptr_t f3 = *(uintptr_t *)(vtbl + 3 * sizeof(void *)); | 225 | uintptr_t f3 = *(uintptr_t *)(vtbl + 3 * sizeof(void *)); |
| 226 | if (!g_client.contains(f3)) | 226 | if (!g_client.contains(f3)) |
| 227 | continue; | 227 | continue; |
| 228 | logf("CInput* = %#lx (ptr var %#lx, vfunc[3] %#lx)", (unsigned long)input, | 228 | logd("CInput* = %#lx (ptr var %#lx, vfunc[3] %#lx)", (unsigned long)input, |
| 229 | (unsigned long)var, (unsigned long)f3); | 229 | (unsigned long)var, (unsigned long)f3); |
| 230 | g_input = input; | 230 | g_input = input; |
| 231 | if (!install_input_hook()) | 231 | if (!install_input_hook()) |
