Add cvars_init() call to main
This commit is contained in:
parent
ad7b8b7615
commit
083778fad0
|
@ -5,6 +5,7 @@
|
||||||
#include "include/main.h"
|
#include "include/main.h"
|
||||||
#include "include/sdk.h"
|
#include "include/sdk.h"
|
||||||
#include "include/globals.h"
|
#include "include/globals.h"
|
||||||
|
#include "include/cvars.h"
|
||||||
#include "include/hooks.h"
|
#include "include/hooks.h"
|
||||||
|
|
||||||
static bool loaded = false;
|
static bool loaded = false;
|
||||||
|
@ -24,6 +25,13 @@ __attribute__((constructor)) void load(void) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Create cvars for settings */
|
||||||
|
if (!cvars_init()) {
|
||||||
|
fprintf(stderr, "hl-cheat: load: error creating cvars, aborting\n");
|
||||||
|
self_unload();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Hook functions */
|
/* Hook functions */
|
||||||
if (!hooks_init()) {
|
if (!hooks_init()) {
|
||||||
fprintf(stderr, "hl-cheat: load: error hooking functions, aborting\n");
|
fprintf(stderr, "hl-cheat: load: error hooking functions, aborting\n");
|
||||||
|
|
Loading…
Reference in New Issue