From 063260ca0b1f633cf120d79796fe7aa3329c1e26 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Fri, 13 Jan 2023 14:28:09 +0000 Subject: Execute cfgs before server startup for gamemode being run (#398) * run cfg to initialise gamemode on startup * remove ; characters from mp_gamemode * exec using _Cmd_Exec_f to avoid issues with semicolons in gamemode names allowing additional commands to be run * run from cfg/server/ rather than cfg/ * fixup formatting --- NorthstarDLL/core/convar/concommand.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NorthstarDLL/core') diff --git a/NorthstarDLL/core/convar/concommand.cpp b/NorthstarDLL/core/convar/concommand.cpp index 02c9e50f..094fa813 100644 --- a/NorthstarDLL/core/convar/concommand.cpp +++ b/NorthstarDLL/core/convar/concommand.cpp @@ -1,9 +1,12 @@ #include "pch.h" #include "concommand.h" #include "shared/misccommands.h" +#include "engine/r2engine.h" #include +bool (*CCommand__Tokenize)(CCommand& self, const char* pCommandString, R2::cmd_source_t commandSource); + //----------------------------------------------------------------------------- // Purpose: Returns true if this is a command // Output : bool -- cgit v1.2.3