Add interface checks to globals_init

This commit is contained in:
8dcc 2023-07-20 23:19:50 +02:00
parent 0bab33a08e
commit 5849eb2ed3
1 changed files with 5 additions and 0 deletions

View File

@ -29,5 +29,10 @@ bool globals_init(void) {
i_client = (cl_clientfunc_t*)dlsym(hw, "cl_funcs");
i_pmove = *(playermove_t**)dlsym(hw, "pmove");
if (!i_engine || !i_client || !i_pmove) {
printf("hl-cheat: globals_init: could't load some symbols.\n");
return false;
}
return true;
}