From bd4119d0d70567325e7e979a3305f6d631c98dad Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Wed, 11 May 2022 17:03:30 +0100 Subject: make cvar print work on dedi, move demo fix stuff, add findflags --- NorthstarDedicatedTest/host.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NorthstarDedicatedTest/host.cpp') diff --git a/NorthstarDedicatedTest/host.cpp b/NorthstarDedicatedTest/host.cpp index 5f56be4e..624809b5 100644 --- a/NorthstarDedicatedTest/host.cpp +++ b/NorthstarDedicatedTest/host.cpp @@ -3,6 +3,8 @@ #include "convar.h" #include "modmanager.h" #include "gameutils.h" +#include "commandprint.h" +#include "mapsprint.h" typedef void (*Host_InitType)(bool bDedicated); Host_InitType Host_Init; @@ -46,6 +48,10 @@ void Host_InitHook(bool bDedicated) // make servers able to run disconnect on clients g_pCVar->FindCommand("disconnect")->m_nFlags |= FCVAR_SERVER_CAN_EXECUTE; + // need to initialise these after host_init since they do stuff to preexisting concommands/convars + InitialiseCommandPrint(); + InitialiseMapsPrint(); + // run client autoexec if on client if (!bDedicated) Cbuf_AddText(Cbuf_GetCurrentPlayer(), "exec autoexec_ns_client", cmd_source_t::kCommandSrcCode); -- cgit v1.2.3