Format globals.c
This commit is contained in:
parent
ebe30c091a
commit
7147ccc5fa
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue