diff --git a/src/main.c b/src/main.c index 2f9c9e6..1da192f 100644 --- a/src/main.c +++ b/src/main.c @@ -5,6 +5,7 @@ #include "include/main.h" #include "include/sdk.h" #include "include/globals.h" +#include "include/cvars.h" #include "include/hooks.h" static bool loaded = false; @@ -24,6 +25,13 @@ __attribute__((constructor)) void load(void) { return; } + /* Create cvars for settings */ + if (!cvars_init()) { + fprintf(stderr, "hl-cheat: load: error creating cvars, aborting\n"); + self_unload(); + return; + } + /* Hook functions */ if (!hooks_init()) { fprintf(stderr, "hl-cheat: load: error hooking functions, aborting\n");