Add pmove interface
This commit is contained in:
parent
8cbb80196f
commit
0bab33a08e
|
@ -8,6 +8,7 @@
|
||||||
void* hw;
|
void* hw;
|
||||||
DECL_INTF(cl_enginefunc_t, engine);
|
DECL_INTF(cl_enginefunc_t, engine);
|
||||||
DECL_INTF(cl_clientfunc_t, client);
|
DECL_INTF(cl_clientfunc_t, client);
|
||||||
|
DECL_INTF(playermove_t, pmove);
|
||||||
|
|
||||||
bool globals_init(void) {
|
bool globals_init(void) {
|
||||||
/*
|
/*
|
||||||
|
@ -26,6 +27,7 @@ bool globals_init(void) {
|
||||||
/* Get symbol addresses using dlsym and the handler we just opened */
|
/* Get symbol addresses using dlsym and the handler we just opened */
|
||||||
i_engine = (cl_enginefunc_t*)dlsym(hw, "cl_enginefuncs");
|
i_engine = (cl_enginefunc_t*)dlsym(hw, "cl_enginefuncs");
|
||||||
i_client = (cl_clientfunc_t*)dlsym(hw, "cl_funcs");
|
i_client = (cl_clientfunc_t*)dlsym(hw, "cl_funcs");
|
||||||
|
i_pmove = *(playermove_t**)dlsym(hw, "pmove");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
extern void* hw;
|
extern void* hw;
|
||||||
DECL_INTF_EXTERN(cl_enginefunc_t, engine);
|
DECL_INTF_EXTERN(cl_enginefunc_t, engine);
|
||||||
DECL_INTF_EXTERN(cl_clientfunc_t, client);
|
DECL_INTF_EXTERN(cl_clientfunc_t, client);
|
||||||
|
DECL_INTF_EXTERN(playermove_t, pmove);
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue