Optimized forwards, now paused functions are stored in a temp list so we dont have to check if they're runnable on each function execution.
2 * ===============================================================
3 * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
4 * ===============================================================
6 * This file is not open source and may not be copied without explicit
7 * written permission of AlliedModders LLC. This file may not be redistributed
8 * in whole or significant part.
9 * For information, see LICENSE.txt or http://www.sourcemod.net/license.php
15 #include "sourcemm_api.h"
16 #include "sm_version.h"
17 #include "sourcemod.h"
19 SourceMod_Core g_SourceMod_Core;
20 IVEngineServer *engine = NULL;
21 IServerGameDLL *gamedll = NULL;
22 IServerGameClients *serverClients = NULL;
23 ISmmPluginManager *g_pMMPlugins = NULL;
25 PLUGIN_EXPOSE(SourceMod, g_SourceMod_Core);
27 bool SourceMod_Core::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late)
31 GET_V_IFACE_ANY(serverFactory, gamedll, IServerGameDLL, INTERFACEVERSION_SERVERGAMEDLL);
32 GET_V_IFACE_CURRENT(engineFactory, engine, IVEngineServer, INTERFACEVERSION_VENGINESERVER);
33 GET_V_IFACE_CURRENT(serverFactory, serverClients, IServerGameClients, INTERFACEVERSION_SERVERGAMECLIENTS);
35 if ((g_pMMPlugins = (ISmmPluginManager *)g_SMAPI->MetaFactory(MMIFACE_PLMANAGER, NULL, NULL)) == NULL)
39 snprintf(error, maxlen, "Unable to find interface %s", MMIFACE_PLMANAGER);
44 return g_SourceMod.InitializeSourceMod(error, maxlen, late);
47 bool SourceMod_Core::Unload(char *error, size_t maxlen)
49 g_SourceMod.CloseSourceMod();
53 bool SourceMod_Core::Pause(char *error, size_t maxlen)
58 bool SourceMod_Core::Unpause(char *error, size_t maxlen)
63 void SourceMod_Core::AllPluginsLoaded()
67 const char *SourceMod_Core::GetAuthor()
69 return "AlliedModders, LLC";
72 const char *SourceMod_Core::GetName()
77 const char *SourceMod_Core::GetDescription()
79 return "Extensible administration and scripting system";
82 const char *SourceMod_Core::GetURL()
84 return "http://www.sourcemod.net/";
87 const char *SourceMod_Core::GetLicense()
89 return "See LICENSE.txt";
92 const char *SourceMod_Core::GetVersion()
94 return SOURCEMOD_VERSION;
97 const char *SourceMod_Core::GetDate()
102 const char *SourceMod_Core::GetLogTag()