Format globals.c

This commit is contained in:
8dcc 2023-07-27 13:36:57 +02:00
parent ebe30c091a
commit 7147ccc5fa
1 changed files with 0 additions and 3 deletions

View File

@ -26,15 +26,12 @@ bool globals_init(void) {
* RTLD_NOLOAD: Don't load the shared object. * RTLD_NOLOAD: Don't load the shared object.
*/ */
hw = dlopen("hw.so", RTLD_LAZY | RTLD_NOLOAD); hw = dlopen("hw.so", RTLD_LAZY | RTLD_NOLOAD);
/* Make sure it's a valid handler */
if (!hw) { if (!hw) {
printf("hl-cheat: globals_init: can't open hw.so\n"); printf("hl-cheat: globals_init: can't open hw.so\n");
return false; return false;
} }
h_client = (void**)dlsym(hw, "hClientDLL"); h_client = (void**)dlsym(hw, "hClientDLL");
if (!h_client) { if (!h_client) {
printf("hl-cheat: globals_init: can't find hClientDLL\n"); printf("hl-cheat: globals_init: can't find hClientDLL\n");
return false; return false;