From 180470cf75f40bed9c24b22d0afd68871d40c9f3 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Mon, 9 May 2022 20:01:35 +0100 Subject: standardise concommand func naming in c++ --- NorthstarDedicatedTest/serverauthentication.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'NorthstarDedicatedTest/serverauthentication.cpp') diff --git a/NorthstarDedicatedTest/serverauthentication.cpp b/NorthstarDedicatedTest/serverauthentication.cpp index 5f9f10e8..d7e67af8 100644 --- a/NorthstarDedicatedTest/serverauthentication.cpp +++ b/NorthstarDedicatedTest/serverauthentication.cpp @@ -600,7 +600,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) { @@ -645,7 +645,8 @@ ON_DLL_LOAD_RELIESON("engine.dll", ServerAuthentication, ConCommand, (HMODULE ba 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( -- cgit v1.2.3