aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/host.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-11 17:03:30 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-11 17:03:30 +0100
commitbd4119d0d70567325e7e979a3305f6d631c98dad (patch)
treeabdc1f5121042547e0059d17ec218001126100d6 /NorthstarDedicatedTest/host.cpp
parent8205f96ceb7da38c15ef6f1af30ea1bbbeede1bf (diff)
downloadNorthstarLauncher-bd4119d0d70567325e7e979a3305f6d631c98dad.tar.gz
NorthstarLauncher-bd4119d0d70567325e7e979a3305f6d631c98dad.zip
make cvar print work on dedi, move demo fix stuff, add findflags
Diffstat (limited to 'NorthstarDedicatedTest/host.cpp')
-rw-r--r--NorthstarDedicatedTest/host.cpp6
1 files changed, 6 insertions, 0 deletions
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);