1.1 --- a/core/CoreConfig.cpp Sat Aug 23 09:46:52 2008 +0000
1.2 +++ b/core/CoreConfig.cpp Sat Aug 23 19:51:02 2008 +0000
1.3 @@ -40,6 +40,7 @@
1.4 #include "Logger.h"
1.5 #include "PluginSys.h"
1.6 #include "ForwardSys.h"
1.7 +#include "frame_hooks.h"
1.8
1.9 #ifdef PLATFORM_WINDOWS
1.10 ConVar sm_corecfgfile("sm_corecfgfile", "addons\\sourcemod\\configs\\core.cfg", 0, "SourceMod core configuration file");
1.11 @@ -102,9 +103,7 @@
1.12 if ((g_bServerExecd || g_ServerCfgFile == NULL)
1.13 && g_bGotServerStart)
1.14 {
1.15 - /* Order is important here. We need to buffer things before we send the command out. */
1.16 - g_pOnAutoConfigsBuffered->Execute(NULL);
1.17 - engine->ServerCommand("sm internal 1\n");
1.18 + g_PendingInternalPush = true;
1.19 }
1.20 }
1.21
1.22 @@ -502,10 +501,6 @@
1.23 }
1.24 iter->Release();
1.25
1.26 -#if defined ORANGEBOX_BUILD
1.27 - engine->ServerExecute();
1.28 -#endif
1.29 -
1.30 g_bGotServerStart = true;
1.31 CheckAndFinalizeConfigs();
1.32 }
1.33 @@ -522,3 +517,12 @@
1.34 g_pOnServerCfg->Execute(NULL);
1.35 g_pOnConfigsExecuted->Execute(NULL);
1.36 }
1.37 +
1.38 +void SM_InternalCmdTrigger()
1.39 +{
1.40 + /* Order is important here. We need to buffer things before we send the command out. */
1.41 + g_pOnAutoConfigsBuffered->Execute(NULL);
1.42 + engine->ServerCommand("sm internal 1\n");
1.43 + g_PendingInternalPush = false;
1.44 +}
1.45 +