diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-11-27 02:41:36 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-11-27 02:41:36 +0000 |
commit | 9855e3c4efeb58fe298147fe52460b358739d7dc (patch) | |
tree | 29752412b0a40d6f9c25def293309707bb12038c | |
parent | f66ea9ce2af44a00e49e6defaa7ec6ef4f100bb4 (diff) | |
download | NorthstarLauncher-9855e3c4efeb58fe298147fe52460b358739d7dc.tar.gz NorthstarLauncher-9855e3c4efeb58fe298147fe52460b358739d7dc.zip |
potential fix for ns_has_agreed_to_send_token not being written to cfg
-rw-r--r-- | NorthstarDedicatedTest/clientauthhooks.cpp | 2 | ||||
-rw-r--r-- | NorthstarDedicatedTest/convar.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/clientauthhooks.cpp b/NorthstarDedicatedTest/clientauthhooks.cpp index ff7e42f6..889512a2 100644 --- a/NorthstarDedicatedTest/clientauthhooks.cpp +++ b/NorthstarDedicatedTest/clientauthhooks.cpp @@ -35,7 +35,7 @@ void InitialiseClientAuthHooks(HMODULE baseAddress) return; // this cvar will save to cfg once initially agreed with - Cvar_ns_has_agreed_to_send_token = RegisterConVar("ns_has_agreed_to_send_token", "0", FCVAR_CLIENTDLL | FCVAR_ARCHIVE, "whether the user has agreed to send their origin token to the northstar masterserver"); + Cvar_ns_has_agreed_to_send_token = RegisterConVar("ns_has_agreed_to_send_token", "0", FCVAR_ARCHIVE_PLAYERPROFILE, "whether the user has agreed to send their origin token to the northstar masterserver"); HookEnabler hook; ENABLER_CREATEHOOK(hook, (char*)baseAddress + 0x1843A0, &AuthWithStryderHook, reinterpret_cast<LPVOID*>(&AuthWithStryder)); diff --git a/NorthstarDedicatedTest/convar.h b/NorthstarDedicatedTest/convar.h index a9da3274..40b8a5d8 100644 --- a/NorthstarDedicatedTest/convar.h +++ b/NorthstarDedicatedTest/convar.h @@ -46,7 +46,7 @@ #define FCVAR_NOT_CONNECTED (1<<22) // cvar cannot be changed by a client that is connected to a server #define FCVAR_MATERIAL_SYSTEM_THREAD (1<<23) // Indicates this cvar is read from the material system thread -#define FCVAR_ARCHIVE_GAMECONSOLE (1<<24) // cvar written to config.cfg on the Xbox +#define FCVAR_ARCHIVE_PLAYERPROFILE (1<<24) // respawn-defined flag, same as FCVAR_ARCHIVE but writes to profile.cfg #define FCVAR_SERVER_CAN_EXECUTE (1<<28)// the server is allowed to execute this command on clients via ClientCommand/NET_StringCmd/CBaseClientState::ProcessStringCmd. #define FCVAR_SERVER_CANNOT_QUERY (1<<29)// If this is set, then the server is not allowed to query this cvar's value (via IServerPluginHelpers::StartQueryCvarValue). |