From 0bab33a08efb64c4637287e15a84e22f8342fdf1 Mon Sep 17 00:00:00 2001 From: 8dcc <8dcc.git@gmail.com> Date: Thu, 20 Jul 2023 20:40:34 +0200 Subject: [PATCH] Add pmove interface --- src/globals.c | 2 ++ src/include/globals.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/globals.c b/src/globals.c index da643d3..7943902 100644 --- a/src/globals.c +++ b/src/globals.c @@ -8,6 +8,7 @@ void* hw; DECL_INTF(cl_enginefunc_t, engine); DECL_INTF(cl_clientfunc_t, client); +DECL_INTF(playermove_t, pmove); bool globals_init(void) { /* @@ -26,6 +27,7 @@ bool globals_init(void) { /* Get symbol addresses using dlsym and the handler we just opened */ i_engine = (cl_enginefunc_t*)dlsym(hw, "cl_enginefuncs"); i_client = (cl_clientfunc_t*)dlsym(hw, "cl_funcs"); + i_pmove = *(playermove_t**)dlsym(hw, "pmove"); return true; } diff --git a/src/include/globals.h b/src/include/globals.h index cf8f485..163fb60 100644 --- a/src/include/globals.h +++ b/src/include/globals.h @@ -27,6 +27,7 @@ extern void* hw; DECL_INTF_EXTERN(cl_enginefunc_t, engine); DECL_INTF_EXTERN(cl_clientfunc_t, client); +DECL_INTF_EXTERN(playermove_t, pmove); /*----------------------------------------------------------------------------*/