From e9a32c69ca2b8d85276c71a7880de0782b8bced7 Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 3 Nov 2026 22:37:33 +0100 Subject: Startup crash: skip fullbright command when off; drop bad owner netvars; add stage markers --- src/menu.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/menu.cpp') diff --git a/src/menu.cpp b/src/menu.cpp index 0c022e4..af1d2b8 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -664,9 +664,24 @@ void draw_text_col(int x, int y, const char *text, int r, int g, int b) { // (see hkdDrawPrintText hook in hl2h.cpp): we wrap our draws in // PushMakeCurrent/PopMakeCurrent so they are submitted with a clean clip. void outer_draw() { + static bool outer_enter = false; + if (!outer_enter) { + outer_enter = true; + logf("outer_draw: enter"); + } poll_keyboard(); fullbright_update(); + static bool fb_done = false; + if (!fb_done) { + fb_done = true; + logf("outer_draw: after fullbright"); + } gui_handle_input(); + static bool gui_done = false; + if (!gui_done) { + gui_done = true; + logf("outer_draw: after gui input"); + } // HL2H_DRAW_TEST=1 draws a probe rect without needing the GUI open static bool draw_test = getenv("HL2H_DRAW_TEST") != nullptr; bool esp_on = feature_active(FEAT_ESP); -- cgit v1.2.3