More Windows build fix.
3 * =============================================================================
5 * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
6 * =============================================================================
8 * This program is free software; you can redistribute it and/or modify it under
9 * the terms of the GNU General Public License, version 3.0, as published by the
10 * Free Software Foundation.
12 * This program is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17 * You should have received a copy of the GNU General Public License along with
18 * this program. If not, see <http://www.gnu.org/licenses/>.
20 * As a special exception, AlliedModders LLC gives you permission to link the
21 * code of this program (as well as its derivative works) to "Half-Life 2," the
22 * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
23 * by the Valve Corporation. You must obey the GNU General Public License in
24 * all respects for all other code used. Additionally, AlliedModders LLC grants
25 * this exception to all derivative works. AlliedModders LLC defines further
26 * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
27 * or <http://www.sourcemod.net/license.php>.
32 #ifndef _INCLUDE_SOURCEMOD_CORECONFIG_H_
33 #define _INCLUDE_SOURCEMOD_CORECONFIG_H_
35 #include "sm_globals.h"
36 #include <ITextParsers.h>
37 #include <IRootConsoleMenu.h>
38 #include <sm_trie_tpl.h>
39 #include "sm_memtable.h"
41 using namespace SourceMod;
45 public ITextListener_SMC,
46 public IRootConsoleCommand
51 public: // SMGlobalClass
52 void OnSourceModAllInitialized();
53 void OnSourceModShutdown();
54 void OnSourceModLevelChange(const char *mapName);
55 public: // ITextListener_SMC
56 SMCResult ReadSMC_KeyValue(const SMCStates *states, const char *key, const char *value);
57 public: // IRootConsoleCommand
58 void OnRootConsoleCommand(const char *cmdname, const CCommand &command);
61 * Initializes CoreConfig by reading from core.cfg file
64 const char *GetCoreConfigValue(const char *key);
67 * Sets configuration option by notifying SourceMod components that rely on core.cfg
69 ConfigResult SetConfigOption(const char *option, const char *value, ConfigSource, char *Error, size_t maxlength);
71 BaseStringTable m_Strings;
72 KTrie<int> m_KeyValues;
75 extern bool SM_AreConfigsExecuted();
76 extern void SM_ExecuteAllConfigs();
77 extern void SM_ExecuteForPlugin(IPluginContext *ctx);
78 extern void SM_ConfigsExecuted_Global();
79 extern void SM_ConfigsExecuted_Plugin(unsigned int serial);
80 extern void SM_InternalCmdTrigger();
82 extern CoreConfig g_CoreConfig;
84 #endif // _INCLUDE_SOURCEMOD_CORECONFIG_H_