mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 10:28:34 +00:00
Clean up logic source.
This commit is contained in:
parent
1a09f2b6df
commit
1ba85dac9c
@ -32,59 +32,59 @@ binary.sources += [
|
|||||||
'smn_adt_array.cpp',
|
'smn_adt_array.cpp',
|
||||||
'smn_sorting.cpp',
|
'smn_sorting.cpp',
|
||||||
'smn_maplists.cpp',
|
'smn_maplists.cpp',
|
||||||
'ADTFactory.cpp',
|
'adtfactory.cpp',
|
||||||
'smn_adt_stack.cpp',
|
'smn_adt_stack.cpp',
|
||||||
'thread/ThreadWorker.cpp',
|
'thread/threadworker.cpp',
|
||||||
'thread/BaseWorker.cpp',
|
'thread/baseworker.cpp',
|
||||||
'ThreadSupport.cpp',
|
'threadsupport.cpp',
|
||||||
'smn_float.cpp',
|
'smn_float.cpp',
|
||||||
'TextParsers.cpp',
|
'textparsers.cpp',
|
||||||
'smn_textparse.cpp',
|
'smn_textparse.cpp',
|
||||||
'smn_adt_trie.cpp',
|
'smn_adt_trie.cpp',
|
||||||
'smn_functions.cpp',
|
'smn_functions.cpp',
|
||||||
'smn_timers.cpp',
|
'smn_timers.cpp',
|
||||||
'smn_players.cpp',
|
'smn_players.cpp',
|
||||||
'MemoryUtils.cpp',
|
'memoryutils.cpp',
|
||||||
'smn_admin.cpp',
|
'smn_admin.cpp',
|
||||||
'smn_banning.cpp',
|
'smn_banning.cpp',
|
||||||
'smn_filesystem.cpp',
|
'smn_filesystem.cpp',
|
||||||
'stringutil.cpp',
|
'stringutil.cpp',
|
||||||
'Translator.cpp',
|
'translator.cpp',
|
||||||
'PhraseCollection.cpp',
|
'phrasecollection.cpp',
|
||||||
'smn_lang.cpp',
|
'smn_lang.cpp',
|
||||||
'smn_string.cpp',
|
'smn_string.cpp',
|
||||||
'smn_handles.cpp',
|
'smn_handles.cpp',
|
||||||
'smn_datapacks.cpp',
|
'smn_datapacks.cpp',
|
||||||
'smn_gameconfigs.cpp',
|
'smn_gameconfigs.cpp',
|
||||||
'smn_fakenatives.cpp',
|
'smn_fakenatives.cpp',
|
||||||
'GameConfigs.cpp',
|
'gameconfigs.cpp',
|
||||||
'sm_crc32.cpp',
|
'sm_crc32.cpp',
|
||||||
'smn_profiler.cpp',
|
'smn_profiler.cpp',
|
||||||
'ShareSys.cpp',
|
'sharesys.cpp',
|
||||||
'PluginSys.cpp',
|
'pluginsys.cpp',
|
||||||
'HandleSys.cpp',
|
'handlesys.cpp',
|
||||||
'NativeOwner.cpp',
|
'nativeowner.cpp',
|
||||||
'ExtensionSys.cpp',
|
'extensionsys.cpp',
|
||||||
'DebugReporter.cpp',
|
'debugreporter.cpp',
|
||||||
'Database.cpp',
|
'database.cpp',
|
||||||
'smn_database.cpp',
|
'smn_database.cpp',
|
||||||
'ForwardSys.cpp',
|
'forwardsys.cpp',
|
||||||
'AdminCache.cpp',
|
'admincache.cpp',
|
||||||
'sm_trie.cpp',
|
'sm_trie.cpp',
|
||||||
'smn_console.cpp',
|
'smn_console.cpp',
|
||||||
'ProfileTools.cpp',
|
'profiletools.cpp',
|
||||||
'Logger.cpp',
|
'logger.cpp',
|
||||||
'smn_core.cpp',
|
'smn_core.cpp',
|
||||||
'smn_menus.cpp',
|
'smn_menus.cpp',
|
||||||
'sprintf.cpp',
|
'sprintf.cpp',
|
||||||
'LibrarySys.cpp',
|
'librarysys.cpp',
|
||||||
'RootConsoleMenu.cpp',
|
'rootconsolemenu.cpp',
|
||||||
'CDataPack.cpp',
|
'cdatapack.cpp',
|
||||||
'frame_tasks.cpp',
|
'frame_tasks.cpp',
|
||||||
]
|
]
|
||||||
if builder.target_platform == 'windows':
|
if builder.target_platform == 'windows':
|
||||||
binary.sources += ['thread/WinThreads.cpp']
|
binary.sources += ['thread/winthreads.cpp']
|
||||||
else:
|
else:
|
||||||
binary.sources += ['thread/PosixThreads.cpp']
|
binary.sources += ['thread/posixthreads.cpp']
|
||||||
|
|
||||||
SM.binaries += [builder.Add(binary)]
|
SM.binaries += [builder.Add(binary)]
|
||||||
|
|||||||
@ -36,8 +36,8 @@
|
|||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
#include <IGameHelpers.h>
|
#include <IGameHelpers.h>
|
||||||
#include <IPlayerHelpers.h>
|
#include <IPlayerHelpers.h>
|
||||||
#include "AdminCache.h"
|
#include "admincache.h"
|
||||||
#include "Translator.h"
|
#include "translator.h"
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "stringutil.h"
|
#include "stringutil.h"
|
||||||
#include <bridge/include/ILogger.h>
|
#include <bridge/include/ILogger.h>
|
||||||
@ -29,8 +29,8 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ADTFactory.h"
|
#include "adtfactory.h"
|
||||||
#include "ShareSys.h"
|
#include "sharesys.h"
|
||||||
|
|
||||||
ADTFactory g_AdtFactory;
|
ADTFactory g_AdtFactory;
|
||||||
|
|
||||||
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "CDataPack.h"
|
#include "cdatapack.h"
|
||||||
#include <am-utility.h>
|
#include <am-utility.h>
|
||||||
#include <am-vector.h>
|
#include <am-vector.h>
|
||||||
|
|
||||||
@ -34,28 +34,28 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "TextParsers.h"
|
#include "textparsers.h"
|
||||||
#include "sm_crc32.h"
|
#include "sm_crc32.h"
|
||||||
#include "MemoryUtils.h"
|
#include "memoryutils.h"
|
||||||
#include "stringutil.h"
|
#include "stringutil.h"
|
||||||
#include "ThreadSupport.h"
|
#include "threadsupport.h"
|
||||||
#include "Translator.h"
|
#include "translator.h"
|
||||||
#include "GameConfigs.h"
|
#include "gameconfigs.h"
|
||||||
#include "DebugReporter.h"
|
#include "debugreporter.h"
|
||||||
#include "PluginSys.h"
|
#include "pluginsys.h"
|
||||||
#include "ShareSys.h"
|
#include "sharesys.h"
|
||||||
#include "NativeOwner.h"
|
#include "nativeowner.h"
|
||||||
#include "HandleSys.h"
|
#include "handlesys.h"
|
||||||
#include "ExtensionSys.h"
|
#include "extensionsys.h"
|
||||||
#include "ForwardSys.h"
|
#include "forwardsys.h"
|
||||||
#include "AdminCache.h"
|
#include "admincache.h"
|
||||||
#include "ProfileTools.h"
|
#include "profiletools.h"
|
||||||
#include "Logger.h"
|
#include "logger.h"
|
||||||
#include "frame_tasks.h"
|
#include "frame_tasks.h"
|
||||||
#include "sprintf.h"
|
#include "sprintf.h"
|
||||||
#include "LibrarySys.h"
|
#include "librarysys.h"
|
||||||
#include "RootConsoleMenu.h"
|
#include "rootconsolemenu.h"
|
||||||
#include "CDataPack.h"
|
#include "cdatapack.h"
|
||||||
#include <bridge/include/BridgeAPI.h>
|
#include <bridge/include/BridgeAPI.h>
|
||||||
#include <bridge/include/IProviderCallbacks.h>
|
#include <bridge/include/IProviderCallbacks.h>
|
||||||
|
|
||||||
|
|||||||
@ -29,11 +29,11 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Database.h"
|
#include "database.h"
|
||||||
#include "ISourceMod.h"
|
#include <ISourceMod.h>
|
||||||
#include "HandleSys.h"
|
#include "handlesys.h"
|
||||||
#include "ExtensionSys.h"
|
#include "extensionsys.h"
|
||||||
#include "PluginSys.h"
|
#include "pluginsys.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <IThreader.h>
|
#include <IThreader.h>
|
||||||
#include <bridge/include/ILogger.h>
|
#include <bridge/include/ILogger.h>
|
||||||
@ -31,8 +31,8 @@
|
|||||||
|
|
||||||
#include <IPluginSys.h>
|
#include <IPluginSys.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include "DebugReporter.h"
|
#include "debugreporter.h"
|
||||||
#include "Logger.h"
|
#include "logger.h"
|
||||||
#include <am-string.h>
|
#include <am-string.h>
|
||||||
|
|
||||||
DebugReport g_DbgReporter;
|
DebugReport g_DbgReporter;
|
||||||
@ -30,11 +30,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "ExtensionSys.h"
|
#include "extensionsys.h"
|
||||||
#include <ILibrarySys.h>
|
#include <ILibrarySys.h>
|
||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "PluginSys.h"
|
#include "pluginsys.h"
|
||||||
#include <am-utility.h>
|
#include <am-utility.h>
|
||||||
#include <am-string.h>
|
#include <am-string.h>
|
||||||
#include <bridge/include/CoreProvider.h>
|
#include <bridge/include/CoreProvider.h>
|
||||||
@ -39,8 +39,8 @@
|
|||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include <IPluginSys.h>
|
#include <IPluginSys.h>
|
||||||
#include <IRootConsoleMenu.h>
|
#include <IRootConsoleMenu.h>
|
||||||
#include "NativeOwner.h"
|
#include "nativeowner.h"
|
||||||
#include "ShareSys.h"
|
#include "sharesys.h"
|
||||||
#include <bridge/include/IExtensionBridge.h>
|
#include <bridge/include/IExtensionBridge.h>
|
||||||
|
|
||||||
class CPlayer;
|
class CPlayer;
|
||||||
@ -28,8 +28,8 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "ForwardSys.h"
|
#include "forwardsys.h"
|
||||||
#include "DebugReporter.h"
|
#include "debugreporter.h"
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include <bridge/include/IScriptManager.h>
|
#include <bridge/include/IScriptManager.h>
|
||||||
#include <amtl/am-string.h>
|
#include <amtl/am-string.h>
|
||||||
@ -31,8 +31,8 @@
|
|||||||
#include <IForwardSys.h>
|
#include <IForwardSys.h>
|
||||||
#include <IPluginSys.h>
|
#include <IPluginSys.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "ISourceMod.h"
|
#include <ISourceMod.h>
|
||||||
#include "ReentrantList.h"
|
#include <ReentrantList.h>
|
||||||
|
|
||||||
typedef ReentrantList<IPluginFunction *>::iterator FuncIter;
|
typedef ReentrantList<IPluginFunction *>::iterator FuncIter;
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sh_list.h>
|
#include <sh_list.h>
|
||||||
#include <sh_string.h>
|
#include <sh_string.h>
|
||||||
#include "GameConfigs.h"
|
#include "gameconfigs.h"
|
||||||
#include "stringutil.h"
|
#include "stringutil.h"
|
||||||
#include <IGameHelpers.h>
|
#include <IGameHelpers.h>
|
||||||
#include <ILibrarySys.h>
|
#include <ILibrarySys.h>
|
||||||
@ -41,7 +41,7 @@
|
|||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "sm_crc32.h"
|
#include "sm_crc32.h"
|
||||||
#include "MemoryUtils.h"
|
#include "memoryutils.h"
|
||||||
#include <am-string.h>
|
#include <am-string.h>
|
||||||
#include <bridge/include/ILogger.h>
|
#include <bridge/include/ILogger.h>
|
||||||
#include <bridge/include/CoreProvider.h>
|
#include <bridge/include/CoreProvider.h>
|
||||||
@ -29,13 +29,13 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "HandleSys.h"
|
#include "handlesys.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "ShareSys.h"
|
#include "sharesys.h"
|
||||||
#include "ExtensionSys.h"
|
#include "extensionsys.h"
|
||||||
#include "PluginSys.h"
|
#include "pluginsys.h"
|
||||||
#include <am-string.h>
|
#include <am-string.h>
|
||||||
#include <bridge/include/ILogger.h>
|
#include <bridge/include/ILogger.h>
|
||||||
|
|
||||||
@ -34,7 +34,7 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sm_platform.h>
|
#include <sm_platform.h>
|
||||||
#include "LibrarySys.h"
|
#include "librarysys.h"
|
||||||
#include <amtl/am-string.h>
|
#include <amtl/am-string.h>
|
||||||
#include <amtl/os/am-path.h>
|
#include <amtl/os/am-path.h>
|
||||||
#include <amtl/os/am-fsutil.h>
|
#include <amtl/os/am-fsutil.h>
|
||||||
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
#include "Logger.h"
|
#include "logger.h"
|
||||||
#include <sourcemod_version.h>
|
#include <sourcemod_version.h>
|
||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
#include <am-string.h>
|
#include <am-string.h>
|
||||||
@ -27,7 +27,7 @@
|
|||||||
* or <http://www.sourcemod.net/license.php>.
|
* or <http://www.sourcemod.net/license.php>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MemoryUtils.h"
|
#include "memoryutils.h"
|
||||||
#ifdef PLATFORM_LINUX
|
#ifdef PLATFORM_LINUX
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <link.h>
|
#include <link.h>
|
||||||
@ -28,9 +28,9 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
#include "NativeOwner.h"
|
#include "nativeowner.h"
|
||||||
#include "ShareSys.h"
|
#include "sharesys.h"
|
||||||
#include "PluginSys.h"
|
#include "pluginsys.h"
|
||||||
|
|
||||||
CNativeOwner::CNativeOwner() : m_nMarkSerial(0)
|
CNativeOwner::CNativeOwner() : m_nMarkSerial(0)
|
||||||
{
|
{
|
||||||
@ -36,7 +36,7 @@
|
|||||||
#include <am-linkedlist.h>
|
#include <am-linkedlist.h>
|
||||||
#include <am-vector.h>
|
#include <am-vector.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "Native.h"
|
#include "native.h"
|
||||||
#include <bridge/include/IScriptManager.h>
|
#include <bridge/include/IScriptManager.h>
|
||||||
|
|
||||||
struct Native;
|
struct Native;
|
||||||
@ -30,8 +30,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "PhraseCollection.h"
|
#include "phrasecollection.h"
|
||||||
#include "Translator.h"
|
#include "translator.h"
|
||||||
#include "sprintf.h"
|
#include "sprintf.h"
|
||||||
#include <am-string.h>
|
#include <am-string.h>
|
||||||
|
|
||||||
@ -31,18 +31,18 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include "PluginSys.h"
|
#include "pluginsys.h"
|
||||||
#include "ShareSys.h"
|
#include "sharesys.h"
|
||||||
#include <ILibrarySys.h>
|
#include <ILibrarySys.h>
|
||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
#include <IHandleSys.h>
|
#include <IHandleSys.h>
|
||||||
#include <IForwardSys.h>
|
#include <IForwardSys.h>
|
||||||
#include <IPlayerHelpers.h>
|
#include <IPlayerHelpers.h>
|
||||||
#include "ExtensionSys.h"
|
#include "extensionsys.h"
|
||||||
#include "GameConfigs.h"
|
#include "gameconfigs.h"
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "Translator.h"
|
#include "translator.h"
|
||||||
#include "Logger.h"
|
#include "logger.h"
|
||||||
#include "frame_tasks.h"
|
#include "frame_tasks.h"
|
||||||
#include <am-string.h>
|
#include <am-string.h>
|
||||||
#include <bridge/include/IVEngineServerBridge.h>
|
#include <bridge/include/IVEngineServerBridge.h>
|
||||||
@ -46,11 +46,11 @@
|
|||||||
#include <IRootConsoleMenu.h>
|
#include <IRootConsoleMenu.h>
|
||||||
#include <sm_stringhashmap.h>
|
#include <sm_stringhashmap.h>
|
||||||
#include <sm_namehashset.h>
|
#include <sm_namehashset.h>
|
||||||
#include "ITranslator.h"
|
#include <ITranslator.h>
|
||||||
#include "IGameConfigs.h"
|
#include <IGameConfigs.h>
|
||||||
#include "NativeOwner.h"
|
#include "nativeowner.h"
|
||||||
#include "ShareSys.h"
|
#include "sharesys.h"
|
||||||
#include "PhraseCollection.h"
|
#include "phrasecollection.h"
|
||||||
#include <am-string.h>
|
#include <am-string.h>
|
||||||
#include <bridge/include/IScriptManager.h>
|
#include <bridge/include/IScriptManager.h>
|
||||||
#include <am-function.h>
|
#include <am-function.h>
|
||||||
@ -25,7 +25,7 @@
|
|||||||
// exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
// exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
||||||
// or <http://www.sourcemod.net/license.php>.
|
// or <http://www.sourcemod.net/license.php>.
|
||||||
|
|
||||||
#include "ProfileTools.h"
|
#include "profiletools.h"
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <am-string.h>
|
#include <am-string.h>
|
||||||
|
|
||||||
@ -24,12 +24,12 @@
|
|||||||
// this exception to all derivative works. AlliedModders LLC defines further
|
// this exception to all derivative works. AlliedModders LLC defines further
|
||||||
// exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
// exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
||||||
// or <http://www.sourcemod.net/license.php>.
|
// or <http://www.sourcemod.net/license.php>.
|
||||||
#include "RootConsoleMenu.h"
|
#include "rootconsolemenu.h"
|
||||||
#include <amtl/am-string.h>
|
#include <amtl/am-string.h>
|
||||||
#include <sourcemod_version.h>
|
#include <sourcemod_version.h>
|
||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
#include <bridge/include/CoreProvider.h>
|
#include <bridge/include/CoreProvider.h>
|
||||||
#include "HandleSys.h"
|
#include "handlesys.h"
|
||||||
|
|
||||||
RootConsoleMenu g_RootMenu;
|
RootConsoleMenu g_RootMenu;
|
||||||
|
|
||||||
@ -29,12 +29,12 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ShareSys.h"
|
#include "sharesys.h"
|
||||||
#include "ExtensionSys.h"
|
#include "extensionsys.h"
|
||||||
#include <ILibrarySys.h>
|
#include <ILibrarySys.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "PluginSys.h"
|
#include "pluginsys.h"
|
||||||
#include "HandleSys.h"
|
#include "handlesys.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
using namespace ke;
|
using namespace ke;
|
||||||
@ -41,7 +41,7 @@
|
|||||||
#include <sm_stringhashmap.h>
|
#include <sm_stringhashmap.h>
|
||||||
#include <sm_namehashset.h>
|
#include <sm_namehashset.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "Native.h"
|
#include "native.h"
|
||||||
|
|
||||||
using namespace SourceHook;
|
using namespace SourceHook;
|
||||||
|
|
||||||
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "CellArray.h"
|
#include "cellarray.h"
|
||||||
#include "stringutil.h"
|
#include "stringutil.h"
|
||||||
#include <IHandleSys.h>
|
#include <IHandleSys.h>
|
||||||
|
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "CellArray.h"
|
#include "cellarray.h"
|
||||||
#include "handle_helpers.h"
|
#include "handle_helpers.h"
|
||||||
#include "stringutil.h"
|
#include "stringutil.h"
|
||||||
#include <IHandleSys.h>
|
#include <IHandleSys.h>
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "AdminCache.h"
|
#include "admincache.h"
|
||||||
#include <IGameHelpers.h>
|
#include <IGameHelpers.h>
|
||||||
#include <IPlayerHelpers.h>
|
#include <IPlayerHelpers.h>
|
||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "Logger.h"
|
#include "logger.h"
|
||||||
|
|
||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
#include <ITranslator.h>
|
#include <ITranslator.h>
|
||||||
|
|||||||
@ -30,11 +30,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "Database.h"
|
#include "database.h"
|
||||||
#include "ExtensionSys.h"
|
#include "extensionsys.h"
|
||||||
#include "stringutil.h"
|
#include "stringutil.h"
|
||||||
#include "ISourceMod.h"
|
#include <ISourceMod.h>
|
||||||
#include "AutoHandleRooter.h"
|
#include <AutoHandleRooter.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include <amtl/am-string.h>
|
#include <amtl/am-string.h>
|
||||||
#include <amtl/am-vector.h>
|
#include <amtl/am-vector.h>
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include <IHandleSys.h>
|
#include <IHandleSys.h>
|
||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
#include "CDataPack.h"
|
#include "cdatapack.h"
|
||||||
|
|
||||||
HandleType_t g_DataPackType;
|
HandleType_t g_DataPackType;
|
||||||
|
|
||||||
|
|||||||
@ -33,8 +33,8 @@
|
|||||||
#include <sh_string.h>
|
#include <sh_string.h>
|
||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "ShareSys.h"
|
#include "sharesys.h"
|
||||||
#include "PluginSys.h"
|
#include "pluginsys.h"
|
||||||
#include "sprintf.h"
|
#include "sprintf.h"
|
||||||
|
|
||||||
using namespace SourceHook;
|
using namespace SourceHook;
|
||||||
|
|||||||
@ -39,7 +39,7 @@
|
|||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
#include <ITranslator.h>
|
#include <ITranslator.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "Logger.h"
|
#include "logger.h"
|
||||||
#include "sprintf.h"
|
#include "sprintf.h"
|
||||||
#include <am-utility.h>
|
#include <am-utility.h>
|
||||||
#include "handle_helpers.h"
|
#include "handle_helpers.h"
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "MersenneTwister.h"
|
#include "mersennetwister.h"
|
||||||
#include <IPluginSys.h>
|
#include <IPluginSys.h>
|
||||||
#include <am-utility.h>
|
#include <am-utility.h>
|
||||||
#include <am-float.h>
|
#include <am-float.h>
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include <IHandleSys.h>
|
#include <IHandleSys.h>
|
||||||
#include "GameConfigs.h"
|
#include "gameconfigs.h"
|
||||||
|
|
||||||
HandleType_t g_GameConfigsType;
|
HandleType_t g_GameConfigsType;
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "Translator.h"
|
#include "translator.h"
|
||||||
#include <IPlayerHelpers.h>
|
#include <IPlayerHelpers.h>
|
||||||
#include <IPluginSys.h>
|
#include <IPluginSys.h>
|
||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
#include <sh_list.h>
|
#include <sh_list.h>
|
||||||
#include <sm_namehashset.h>
|
#include <sm_namehashset.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "CellArray.h"
|
#include "cellarray.h"
|
||||||
#include <IGameHelpers.h>
|
#include <IGameHelpers.h>
|
||||||
#include <ILibrarySys.h>
|
#include <ILibrarySys.h>
|
||||||
#include <ITextParsers.h>
|
#include <ITextParsers.h>
|
||||||
|
|||||||
@ -33,9 +33,9 @@
|
|||||||
#include <sh_stack.h>
|
#include <sh_stack.h>
|
||||||
#include <IMenuManager.h>
|
#include <IMenuManager.h>
|
||||||
#include <IPlayerHelpers.h>
|
#include <IPlayerHelpers.h>
|
||||||
#include "DebugReporter.h"
|
#include "debugreporter.h"
|
||||||
#if defined MENU_DEBUG
|
#if defined MENU_DEBUG
|
||||||
#include "Logger.h"
|
#include "logger.h"
|
||||||
#endif
|
#endif
|
||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@ -37,9 +37,9 @@
|
|||||||
#include <ITranslator.h>
|
#include <ITranslator.h>
|
||||||
#include <sh_string.h>
|
#include <sh_string.h>
|
||||||
#include <sh_list.h>
|
#include <sh_list.h>
|
||||||
#include "GameConfigs.h"
|
#include "gameconfigs.h"
|
||||||
#include "CellArray.h"
|
#include "cellarray.h"
|
||||||
#include "AutoHandleRooter.h"
|
#include <AutoHandleRooter.h>
|
||||||
#include "stringutil.h"
|
#include "stringutil.h"
|
||||||
#include <bridge/include/IPlayerInfoBridge.h>
|
#include <bridge/include/IPlayerInfoBridge.h>
|
||||||
#include <bridge/include/ILogger.h>
|
#include <bridge/include/ILogger.h>
|
||||||
|
|||||||
@ -36,7 +36,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
#include "ProfileTools.h"
|
#include "profiletools.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
struct Profiler
|
struct Profiler
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "CellArray.h"
|
#include "cellarray.h"
|
||||||
#include <IHandleSys.h>
|
#include <IHandleSys.h>
|
||||||
|
|
||||||
/***********************************
|
/***********************************
|
||||||
|
|||||||
@ -35,7 +35,7 @@
|
|||||||
#include <ITimerSystem.h>
|
#include <ITimerSystem.h>
|
||||||
#include <IPluginSys.h>
|
#include <IPluginSys.h>
|
||||||
#include <sh_stack.h>
|
#include <sh_stack.h>
|
||||||
#include "DebugReporter.h"
|
#include "debugreporter.h"
|
||||||
#include <bridge/include/CoreProvider.h>
|
#include <bridge/include/CoreProvider.h>
|
||||||
|
|
||||||
using namespace SourceHook;
|
using namespace SourceHook;
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
// or <http://www.sourcemod.net/license.php>.
|
// or <http://www.sourcemod.net/license.php>.
|
||||||
|
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
#include "Translator.h"
|
#include "translator.h"
|
||||||
#include "sprintf.h"
|
#include "sprintf.h"
|
||||||
#include <am-float.h>
|
#include <am-float.h>
|
||||||
#include <am-string.h>
|
#include <am-string.h>
|
||||||
|
|||||||
@ -35,7 +35,7 @@
|
|||||||
#include <sm_platform.h>
|
#include <sm_platform.h>
|
||||||
#include "stringutil.h"
|
#include "stringutil.h"
|
||||||
#include <am-string.h>
|
#include <am-string.h>
|
||||||
#include "TextParsers.h"
|
#include "textparsers.h"
|
||||||
|
|
||||||
// We're in logic so we don't have this from the SDK.
|
// We're in logic so we don't have this from the SDK.
|
||||||
#ifndef MIN
|
#ifndef MIN
|
||||||
|
|||||||
@ -35,7 +35,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "TextParsers.h"
|
#include "textparsers.h"
|
||||||
#include <ILibrarySys.h>
|
#include <ILibrarySys.h>
|
||||||
#include <am-string.h>
|
#include <am-string.h>
|
||||||
|
|
||||||
@ -29,7 +29,7 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "BaseWorker.h"
|
#include "baseworker.h"
|
||||||
|
|
||||||
BaseWorker::BaseWorker(IThreadWorkerCallbacks *hooks) :
|
BaseWorker::BaseWorker(IThreadWorkerCallbacks *hooks) :
|
||||||
m_perFrame(SM_DEFAULT_THREADS_PER_FRAME),
|
m_perFrame(SM_DEFAULT_THREADS_PER_FRAME),
|
||||||
@ -33,7 +33,7 @@
|
|||||||
#define _INCLUDE_SOURCEMOD_BASEWORKER_H
|
#define _INCLUDE_SOURCEMOD_BASEWORKER_H
|
||||||
|
|
||||||
#include "sh_list.h"
|
#include "sh_list.h"
|
||||||
#include "ThreadSupport.h"
|
#include "threadsupport.h"
|
||||||
|
|
||||||
#define SM_DEFAULT_THREADS_PER_FRAME 1
|
#define SM_DEFAULT_THREADS_PER_FRAME 1
|
||||||
|
|
||||||
@ -30,8 +30,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "PosixThreads.h"
|
#include "posixthreads.h"
|
||||||
#include "ThreadWorker.h"
|
#include "threadworker.h"
|
||||||
|
|
||||||
IThreadWorker *PosixThreader::MakeWorker(IThreadWorkerCallbacks *hooks, bool threaded)
|
IThreadWorker *PosixThreader::MakeWorker(IThreadWorkerCallbacks *hooks, bool threaded)
|
||||||
{
|
{
|
||||||
@ -29,7 +29,7 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ThreadWorker.h"
|
#include "threadworker.h"
|
||||||
|
|
||||||
ThreadWorker::ThreadWorker(IThreadWorkerCallbacks *hooks) : BaseWorker(hooks),
|
ThreadWorker::ThreadWorker(IThreadWorkerCallbacks *hooks) : BaseWorker(hooks),
|
||||||
m_Threader(NULL),
|
m_Threader(NULL),
|
||||||
@ -32,7 +32,7 @@
|
|||||||
#ifndef _INCLUDE_SOURCEMOD_THREADWORKER_H
|
#ifndef _INCLUDE_SOURCEMOD_THREADWORKER_H
|
||||||
#define _INCLUDE_SOURCEMOD_THREADWORKER_H
|
#define _INCLUDE_SOURCEMOD_THREADWORKER_H
|
||||||
|
|
||||||
#include "BaseWorker.h"
|
#include "baseworker.h"
|
||||||
|
|
||||||
#define DEFAULT_THINK_TIME_MS 20
|
#define DEFAULT_THINK_TIME_MS 20
|
||||||
|
|
||||||
@ -30,8 +30,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define _WIN32_WINNT 0x0400
|
#define _WIN32_WINNT 0x0400
|
||||||
#include "WinThreads.h"
|
#include "winthreads.h"
|
||||||
#include "ThreadWorker.h"
|
#include "threadworker.h"
|
||||||
|
|
||||||
IThreadWorker *WinThreader::MakeWorker(IThreadWorkerCallbacks *hooks, bool threaded)
|
IThreadWorker *WinThreader::MakeWorker(IThreadWorkerCallbacks *hooks, bool threaded)
|
||||||
{
|
{
|
||||||
@ -29,13 +29,13 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
#include <sm_platform.h>
|
#include <sm_platform.h>
|
||||||
#include "ThreadSupport.h"
|
#include "threadsupport.h"
|
||||||
#include "common_logic.h"
|
#include "common_logic.h"
|
||||||
|
|
||||||
#if defined PLATFORM_POSIX
|
#if defined PLATFORM_POSIX
|
||||||
#include "thread/PosixThreads.h"
|
#include "thread/posixthreads.h"
|
||||||
#elif defined PLATFORM_WINDOWS
|
#elif defined PLATFORM_WINDOWS
|
||||||
#include "thread/WinThreads.h"
|
#include "thread/winthreads.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
MainThreader g_MainThreader;
|
MainThreader g_MainThreader;
|
||||||
@ -34,11 +34,11 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <sm_platform.h>
|
#include <sm_platform.h>
|
||||||
#include "Translator.h"
|
#include "translator.h"
|
||||||
#include <IPlayerHelpers.h>
|
#include <IPlayerHelpers.h>
|
||||||
#include <ISourceMod.h>
|
#include <ISourceMod.h>
|
||||||
#include <ILibrarySys.h>
|
#include <ILibrarySys.h>
|
||||||
#include "PhraseCollection.h"
|
#include "phrasecollection.h"
|
||||||
#include "stringutil.h"
|
#include "stringutil.h"
|
||||||
#include "sprintf.h"
|
#include "sprintf.h"
|
||||||
#include <am-string.h>
|
#include <am-string.h>
|
||||||
@ -37,9 +37,9 @@
|
|||||||
#include <sh_string.h>
|
#include <sh_string.h>
|
||||||
#include <sh_vector.h>
|
#include <sh_vector.h>
|
||||||
#include "sm_memtable.h"
|
#include "sm_memtable.h"
|
||||||
#include "ITextParsers.h"
|
#include <ITextParsers.h>
|
||||||
#include <ITranslator.h>
|
#include <ITranslator.h>
|
||||||
#include "PhraseCollection.h"
|
#include "phrasecollection.h"
|
||||||
|
|
||||||
/* :TODO: write a templatized version of tries? */
|
/* :TODO: write a templatized version of tries? */
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user