Add pmove interface

This commit is contained in:
8dcc 2023-07-20 20:40:34 +02:00
parent 8cbb80196f
commit 0bab33a08e
2 changed files with 3 additions and 0 deletions

View File

@ -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;
}

View File

@ -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);
/*----------------------------------------------------------------------------*/