diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-09-20 10:57:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 11:57:57 +0200 |
commit | 122f84f14d6177cc4c78b817ab71712185e0b47f (patch) | |
tree | 20c8ebcdddcdba06161da89ba5710ef237311f3a /NorthstarDLL/serverauthentication.cpp | |
parent | 5dd0949213203572109d95daa934d113832525a7 (diff) | |
download | NorthstarLauncher-122f84f14d6177cc4c78b817ab71712185e0b47f.tar.gz NorthstarLauncher-122f84f14d6177cc4c78b817ab71712185e0b47f.zip |
Standardise concommand func naming in C++ (#277)
part of refactor
Diffstat (limited to 'NorthstarDLL/serverauthentication.cpp')
-rw-r--r-- | NorthstarDLL/serverauthentication.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/NorthstarDLL/serverauthentication.cpp b/NorthstarDLL/serverauthentication.cpp index bff19197..af170766 100644 --- a/NorthstarDLL/serverauthentication.cpp +++ b/NorthstarDLL/serverauthentication.cpp @@ -642,7 +642,7 @@ bool ProcessConnectionlessPacketHook(void* a1, netpacket_t* packet) return ProcessConnectionlessPacket(a1, packet); } -void ResetPdataCommand(const CCommand& args) +void ConCommand_ns_resetpersistence(const CCommand& args) { if (*sv_m_State == server_state_t::ss_active) { @@ -689,7 +689,8 @@ void InitialiseServerAuthentication(HMODULE baseAddress) Cvar_net_datablock_enabled = g_pCVar->FindVar("net_datablock_enabled"); - RegisterConCommand("ns_resetpersistence", ResetPdataCommand, "resets your pdata when you next enter the lobby", FCVAR_NONE); + RegisterConCommand( + "ns_resetpersistence", ConCommand_ns_resetpersistence, "resets your pdata when you next enter the lobby", FCVAR_NONE); HookEnabler hook; ENABLER_CREATEHOOK( |