diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-01-30 03:04:25 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-01-30 03:04:25 +0000 |
commit | a589bb0082cbae6d326644292179c9427e76e795 (patch) | |
tree | 1a40c5cb171af28a7bcd5c6ec75bcbc855bb0ef4 /NorthstarDedicatedTest/convar.h | |
parent | cd1631d782b1a1e4f6840e3964617bac95814dec (diff) | |
download | NorthstarLauncher-a589bb0082cbae6d326644292179c9427e76e795.tar.gz NorthstarLauncher-a589bb0082cbae6d326644292179c9427e76e795.zip |
add FindConVar and FindConCommand
Diffstat (limited to 'NorthstarDedicatedTest/convar.h')
-rw-r--r-- | NorthstarDedicatedTest/convar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/convar.h b/NorthstarDedicatedTest/convar.h index 3de8139b..df51edb7 100644 --- a/NorthstarDedicatedTest/convar.h +++ b/NorthstarDedicatedTest/convar.h @@ -96,7 +96,7 @@ public: //void* unknown2[28]; //ConVar*(*FindVar)(const char* var_name); // offset for this is currently very wrong char* unknown[112]; - ConCommand*(*FindCommandBase)(ICvar* self, const char* varName); + ConCommand*(*FindCommandBase)(ICvar* self, const char* varName); // this offset is also wrong for some reason }; VTable* m_vtable; @@ -104,6 +104,7 @@ public: ConVar* RegisterConVar(const char* name, const char* defaultValue, int flags, const char* helpString); +ConVar* FindConVar(const char* name); void InitialiseConVars(HMODULE baseAddress); extern std::unordered_map<std::string, ConVar*> g_CustomConvars; |