From 7079ad6643f3eaa724c9f9ae0e753e787ee2f7f5 Mon Sep 17 00:00:00 2001 From: Willian Henrique Date: Thu, 15 Jun 2023 04:12:01 -0300 Subject: Fix L4D VGuiConnect/VGuiIsInitialized gamedata This was actually breaking deferred initialisation in 0.5, the main observable effect being that the L4D1 console spam fix stopped working. Committer's note: woopsy! --- gamedata/engine.kv | 4 ++-- src/fixes.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gamedata/engine.kv b/gamedata/engine.kv index 58511db..e72fa3f 100644 --- a/gamedata/engine.kv +++ b/gamedata/engine.kv @@ -89,11 +89,11 @@ off_SP_offset { // IEngineVGuiInternal/CEngineVGui vtidx_VGuiConnect { // note: the actual name is Connect() but that's too generic default "3 + NVDTOR" - Portal2 "4 + NVDTOR" // ActivateGameUI added + L4Dbased "4 + NVDTOR" // ActivateGameUI added } vtidx_VGuiIsInitialized { // likewise, function is just called IsInitialized() default "6 + NVDTOR" - Portal2 "7 + NVDTOR" + L4Dbased "7 + NVDTOR" } // vi: sw=4 ts=4 noet tw=80 cc=80 ft=plain diff --git a/src/fixes.c b/src/fixes.c index b2eaf91..8d5bb77 100644 --- a/src/fixes.c +++ b/src/fixes.c @@ -169,7 +169,6 @@ static void l4d1specific(void) { // these hidden variables to 0 gets rid of it. struct con_var *v = con_findvar("ui_l4d_debug"); if (v) con_setvari(v, 0); - // FIXME: this is borked with deferred init. Does gameui load SUPER late? v = con_findvar("mm_l4d_debug"); if (v) con_setvari(v, 0); -- cgit v1.2.3