From a4afb6714f67c029310c0853ff47fdef354e2e72 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 26 Dec 2022 14:29:53 +0000 Subject: Fix deferred init for Portal 2 compatibility Thanks Bill for figuring out what the problem was. --- gamedata/engine.kv | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gamedata/engine.kv') diff --git a/gamedata/engine.kv b/gamedata/engine.kv index fdc03ff..72243b4 100644 --- a/gamedata/engine.kv +++ b/gamedata/engine.kv @@ -86,6 +86,13 @@ off_SP_offset { } // IEngineVGuiInternal/CEngineVGui -vtidx_VGuiConnect "3 + NVDTOR" // note: real name is Connect, way too generic +vtidx_VGuiConnect { // note: the actual name is Connect() but that's too generic + default "3 + NVDTOR" + Portal2 "4 + NVDTOR" // ActivateGameUI added +} +vtidx_VGuiIsInitialized { // likewise, function is just called IsInitialized() + default "6 + NVDTOR" + Portal2 "7 + NVDTOR" +} // vi: sw=4 ts=4 noet tw=80 cc=80 ft=plain -- cgit v1.2.3