summaryrefslogtreecommitdiffhomepage
path: root/src/engineapi.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-12-26 14:29:53 +0000
committerMichael Smith <mikesmiffy128@gmail.com>2023-01-15 15:17:51 +0000
commita4afb6714f67c029310c0853ff47fdef354e2e72 (patch)
tree918a490474ad71d5b6ac817d409bae5e8ab990d5 /src/engineapi.c
parentf28cd3c70fc75114413ce0719e298f30cec407fa (diff)
Fix deferred init for Portal 2 compatibility
Thanks Bill for figuring out what the problem was.
Diffstat (limited to 'src/engineapi.c')
-rw-r--r--src/engineapi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engineapi.c b/src/engineapi.c
index b2272f9..0511c7d 100644
--- a/src/engineapi.c
+++ b/src/engineapi.c
@@ -40,7 +40,7 @@ struct VEngineServer *engserver;
DECL_VFUNC(void *, GetGlobalVars, 1)
void *globalvars;
-void *inputsystem;
+void *inputsystem, *vgui;
DECL_VFUNC_DYN(void *, GetAllServerClasses)
@@ -74,6 +74,7 @@ bool engineapi_init(int pluginver) {
if (pim) globalvars = GetGlobalVars(pim);
inputsystem = factory_inputsystem("InputSystemVersion001", 0);
+ vgui = factory_engine("VEngineVGui001", 0);
void *srvdll;
// TODO(compat): add this back when there's gamedata for 009 (no point atm)