From 829dece47f305979bd1375300ebc14fc2e264c0a Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 12 May 2022 16:38:53 +0100 Subject: Rerun L4D1 console spam fix after config loading This was the simplest way I could think of to solve this issue. Thanks again Aciidz for pointing the issue out, and thanks Turtle Rock for shipping such a broken game. --- src/fixes.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/fixes.c') diff --git a/src/fixes.c b/src/fixes.c index d055ba8..a90d878 100644 --- a/src/fixes.c +++ b/src/fixes.c @@ -161,4 +161,12 @@ void fixes_apply(void) { else if (GAMETYPE_MATCHES(L4D2x)) l4d2specific(); } +void fixes_tryagainlater(void) { + if (GAMETYPE_MATCHES(L4D1)) { + // whatever dll this is in seems to load late (mm_l4d_debug is fine) + struct con_var *v = con_findvar("ui_l4d_debug"); + if (v) con_setvari(v, 0); + } +} + // vi: sw=4 ts=4 noet tw=80 cc=80 -- cgit v1.2.3