diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-08-02 03:20:10 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-08-02 03:20:10 +0100 |
commit | eb56fcbe02f35ed4f418a7dc53cd9eb0ad95a504 (patch) | |
tree | 352923d1b6735502a71f4202e542af7ab84b3946 /NorthstarDedicatedTest/convar.cpp | |
parent | 30e67549449a0ffbb58f7fc736bdd9e4ce7ec9d5 (diff) | |
download | NorthstarLauncher-eb56fcbe02f35ed4f418a7dc53cd9eb0ad95a504.tar.gz NorthstarLauncher-eb56fcbe02f35ed4f418a7dc53cd9eb0ad95a504.zip |
add dynamic keyvalue building, client serverbrowser stuff
Diffstat (limited to 'NorthstarDedicatedTest/convar.cpp')
-rw-r--r-- | NorthstarDedicatedTest/convar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/convar.cpp b/NorthstarDedicatedTest/convar.cpp index 3bb95a95..156301b6 100644 --- a/NorthstarDedicatedTest/convar.cpp +++ b/NorthstarDedicatedTest/convar.cpp @@ -3,7 +3,7 @@ #include <set> // should this be in modmanager? -std::set<std::string> g_CustomConvars; // this is used in modloading code to determine whether we've registered a mod convar already +std::unordered_map<std::string, ConVar*> g_CustomConvars; // this is used in modloading code to determine whether we've registered a mod convar already typedef void(*ConVarConstructorType)(ConVar* newVar, const char* name, const char* defaultValue, int flags, const char* helpString); ConVarConstructorType conVarConstructor; @@ -16,7 +16,7 @@ ConVar* RegisterConVar(const char* name, const char* defaultValue, int flags, co ConVar* newVar = new ConVar; conVarConstructor(newVar, name, defaultValue, flags, helpString); - g_CustomConvars.insert(name); + g_CustomConvars.insert(std::make_pair(name, newVar)); return newVar; } |