1.1 --- a/extensions/sdktools/sdk/smsdk_ext.cpp Wed Aug 01 02:18:19 2007 +0000
1.2 +++ b/extensions/sdktools/sdk/smsdk_ext.cpp Wed Aug 01 02:48:11 2007 +0000
1.3 @@ -1,17 +1,31 @@
1.4 /**
1.5 * vim: set ts=4 :
1.6 - * ===============================================================
1.7 - * SourceMod, Copyright (C) 2004-2007 AlliedModders LLC.
1.8 - * All rights reserved.
1.9 - * ===============================================================
1.10 + * ================================================================
1.11 + * SourceMod Sample Extension
1.12 + * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved.
1.13 + * ================================================================
1.14 *
1.15 - * This file is part of the SourceMod/SourcePawn SDK. This file may only be
1.16 - * used or modified under the Terms and Conditions of its License Agreement,
1.17 - * which is found in public/licenses/LICENSE.txt. As of this notice, derivative
1.18 - * works must be licensed under the GNU General Public License (version 2 or
1.19 - * greater). A copy of the GPL is included under public/licenses/GPL.txt.
1.20 + * This program is free software; you can redistribute it and/or
1.21 + * modify it under the terms of the GNU General Public License,
1.22 + * version 3.0, as published by the Free Software Foundation.
1.23 *
1.24 - * To view the latest information, see: http://www.sourcemod.net/license.php
1.25 + * This program is distributed in the hope that it will be useful,
1.26 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.27 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.28 + * GNU General Public License for more details.
1.29 + *
1.30 + * You should have received a copy of the GNU General Public License
1.31 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
1.32 + *
1.33 + * As a special exception, AlliedModders LLC gives you permission to
1.34 + * link the code of this program (as well as its derivative works) to
1.35 + * "Half-Life 2," the "Source Engine," the "SourcePawn JIT," and any
1.36 + * Game MODs that run on software by the Valve Corporation. You must
1.37 + * obey the GNU General Public License in all respects for all other
1.38 + * code used. Additionally, AlliedModders LLC grants this exception
1.39 + * to all derivative works. AlliedModders LLC defines further
1.40 + * exceptions, found in LICENSE.txt (as of this writing, version
1.41 + * JULY-31-2007), or <http://www.sourcemod.net/license.php>.
1.42 *
1.43 * Version: $Id$
1.44 */
1.45 @@ -47,10 +61,10 @@
1.46 #endif //SMEXT_ENABLE_DBMANAGER
1.47 #if defined SMEXT_ENABLE_GAMECONF
1.48 IGameConfigManager *gameconfs = NULL; /**< Game config manager */
1.49 -#endif
1.50 +#endif //SMEXT_ENABLE_DBMANAGER
1.51 #if defined SMEXT_ENABLE_MEMUTILS
1.52 IMemoryUtils *memutils = NULL;
1.53 -#endif
1.54 +#endif //SMEXT_ENABLE_DBMANAGER
1.55 #if defined SMEXT_ENABLE_GAMEHELPERS
1.56 IGameHelpers *gamehelpers = NULL;
1.57 #endif
1.58 @@ -60,6 +74,12 @@
1.59 #if defined SMEXT_ENABLE_ADTFACTORY
1.60 IADTFactory *adtfactory = NULL;
1.61 #endif
1.62 +#if defined SMEXT_ENABLE_THREADER
1.63 +IThreader *threader = NULL;
1.64 +#endif
1.65 +#if defined SMEXT_ENABLE_LIBSYS
1.66 +ILibrarySys *libsys = NULL;
1.67 +#endif
1.68
1.69 /** Exports the main interface */
1.70 PLATFORM_EXTERN_C IExtensionInterface *GetSMExtAPI()
1.71 @@ -124,6 +144,12 @@
1.72 #if defined SMEXT_ENABLE_ADTFACTORY
1.73 SM_GET_IFACE(ADTFACTORY, adtfactory);
1.74 #endif
1.75 +#if defined SMEXT_ENABLE_THREADER
1.76 + SM_GET_IFACE(THREADER, threader);
1.77 +#endif
1.78 +#if defined SMEXT_ENABLE_LIBSYS
1.79 + SM_GET_IFACE(LIBRARYSYS, libsys);
1.80 +#endif
1.81
1.82 if (SDK_OnLoad(error, maxlength, late))
1.83 {