Add cvars_init() call to main
This commit is contained in:
		| @@ -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"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user