diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-09 20:45:00 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-09 20:45:00 +0100 |
commit | 44034d69a54e2ef9e56cac06abf80a10fd3dcfcf (patch) | |
tree | aa137a8154afe9fdc7639fd53cc1dabecdf5b903 /NorthstarDedicatedTest/convar.h | |
parent | 5ce8343bcced9e92ab2b3c1b80382cffa0281629 (diff) | |
download | NorthstarLauncher-44034d69a54e2ef9e56cac06abf80a10fd3dcfcf.tar.gz NorthstarLauncher-44034d69a54e2ef9e56cac06abf80a10fd3dcfcf.zip |
use cvar change callbacks for unescaping ns_server_name and ns_server_desc
Diffstat (limited to 'NorthstarDedicatedTest/convar.h')
-rw-r--r-- | NorthstarDedicatedTest/convar.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/convar.h b/NorthstarDedicatedTest/convar.h index 9b27aabe..f316562b 100644 --- a/NorthstarDedicatedTest/convar.h +++ b/NorthstarDedicatedTest/convar.h @@ -74,6 +74,8 @@ class ConCommandBase; class ConCommand; class ConVar; +typedef void (*FnChangeCallback_t)(ConVar* var, const char* pOldValue, float flOldValue); + //----------------------------------------------------------------------------- // Purpose: A console variable //----------------------------------------------------------------------------- @@ -91,7 +93,7 @@ class ConVar float fMin, bool bMax, float fMax, - void* pCallback); + FnChangeCallback_t pCallback); ~ConVar(void); const char* GetBaseName(void) const; |