aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/convar.h
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-09 20:45:00 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-09 20:45:00 +0100
commit44034d69a54e2ef9e56cac06abf80a10fd3dcfcf (patch)
treeaa137a8154afe9fdc7639fd53cc1dabecdf5b903 /NorthstarDedicatedTest/convar.h
parent5ce8343bcced9e92ab2b3c1b80382cffa0281629 (diff)
downloadNorthstarLauncher-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.h4
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;