Imported support for new build system.
This commit is contained in:
parent
83393f299a
commit
d3f0a14867
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod GeoIP Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_GEOIP_VERSION_H_
|
|
||||||
#define _INCLUDE_GEOIP_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_GEOIP_VERSION_H_
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod GeoIP Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_LOGIC_VERSION_H_
|
|
||||||
#define _INCLUDE_LOGIC_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_LOGIC_VERSION_H_
|
|
@ -1,48 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SOURCEMOD_VERSION_H_
|
|
||||||
#define _INCLUDE_SOURCEMOD_VERSION_H_
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file Contains SourceMod version information.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SOURCEMOD_VERSION_H_
|
|
@ -1,48 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SOURCEMOD_VERSION_H_
|
|
||||||
#define _INCLUDE_SOURCEMOD_VERSION_H_
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file Contains SourceMod version information.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SOURCEMOD_VERSION_H_
|
|
@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
#include "sm_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -29,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -47,12 +47,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "SourceMod"
|
VALUE "Comments", "SourceMod"
|
||||||
VALUE "FileDescription", "SourceMod Core"
|
VALUE "FileDescription", "SourceMod Core"
|
||||||
VALUE "FileVersion", SVN_FULL_VERSION
|
VALUE "FileVersion", SM_FULL_VERSION
|
||||||
VALUE "InternalName", "sourcemod"
|
VALUE "InternalName", "sourcemod"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
||||||
VALUE "OriginalFilename", BINARY_NAME
|
VALUE "OriginalFilename", BINARY_NAME
|
||||||
VALUE "ProductName", "SourceMod"
|
VALUE "ProductName", "SourceMod"
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* vim: set ts=4 :
|
* vim: set ts=4 sw=4 tw=99 noet:
|
||||||
* =============================================================================
|
* =============================================================================
|
||||||
* SourceMod BinTools Extension
|
* SourceMod BinTools Extension
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
||||||
@ -29,6 +29,7 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sourcemod_version.h>
|
||||||
#include "extension.h"
|
#include "extension.h"
|
||||||
#include "CallMaker.h"
|
#include "CallMaker.h"
|
||||||
|
|
||||||
@ -54,3 +55,14 @@ bool BinTools::SDK_OnLoad(char *error, size_t maxlength, bool late)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *BinTools::GetVersion()
|
||||||
|
{
|
||||||
|
return SM_FULL_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *BinTools::GetDate()
|
||||||
|
{
|
||||||
|
return SM_BUILD_TIMESTAMP;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -81,6 +81,8 @@ public:
|
|||||||
* @return True if working, false otherwise.
|
* @return True if working, false otherwise.
|
||||||
*/
|
*/
|
||||||
//virtual bool QueryRunning(char *error, size_t maxlength);
|
//virtual bool QueryRunning(char *error, size_t maxlength);
|
||||||
|
const char *GetVersion();
|
||||||
|
const char *GetDate();
|
||||||
public:
|
public:
|
||||||
#if defined SMEXT_CONF_METAMOD
|
#if defined SMEXT_CONF_METAMOD
|
||||||
/**
|
/**
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
|
|
||||||
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
||||||
#define _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
#define _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
||||||
#include "svn_version.h"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file smsdk_config.h
|
* @file smsdk_config.h
|
||||||
@ -41,12 +40,12 @@
|
|||||||
/* Basic information exposed publicly */
|
/* Basic information exposed publicly */
|
||||||
#define SMEXT_CONF_NAME "BinTools"
|
#define SMEXT_CONF_NAME "BinTools"
|
||||||
#define SMEXT_CONF_DESCRIPTION "Low-level C/C++ Calling API"
|
#define SMEXT_CONF_DESCRIPTION "Low-level C/C++ Calling API"
|
||||||
#define SMEXT_CONF_VERSION SVN_FULL_VERSION
|
#define SMEXT_CONF_VERSION ""
|
||||||
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
||||||
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
||||||
#define SMEXT_CONF_LOGTAG "SAMPLE"
|
#define SMEXT_CONF_LOGTAG "SAMPLE"
|
||||||
#define SMEXT_CONF_LICENSE "GPL"
|
#define SMEXT_CONF_LICENSE "GPL"
|
||||||
#define SMEXT_CONF_DATESTRING __DATE__ " " __TIME__
|
#define SMEXT_CONF_DATESTRING ""
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Exposes plugin's main interface.
|
* @brief Exposes plugin's main interface.
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod BinTools Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_BINTOOLS_VERSION_H_
|
|
||||||
#define _INCLUDE_BINTOOLS_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_BINTOOLS_VERSION_H_
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod BinTools Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_BINTOOLS_VERSION_H_
|
|
||||||
#define _INCLUDE_BINTOOLS_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_BINTOOLS_VERSION_H_
|
|
@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -29,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -47,12 +47,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "BinTools Extension"
|
VALUE "Comments", "BinTools Extension"
|
||||||
VALUE "FileDescription", "SourceMod BinTools Extension"
|
VALUE "FileDescription", "SourceMod BinTools Extension"
|
||||||
VALUE "FileVersion", SVN_FULL_VERSION
|
VALUE "FileVersion", SM_FULL_VERSION
|
||||||
VALUE "InternalName", "SourceMod BinTools Extension"
|
VALUE "InternalName", "SourceMod BinTools Extension"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
||||||
VALUE "OriginalFilename", BINARY_NAME
|
VALUE "OriginalFilename", BINARY_NAME
|
||||||
VALUE "ProductName", "SourceMod BinTools Extension"
|
VALUE "ProductName", "SourceMod BinTools Extension"
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sourcemod_version.h>
|
||||||
#include "extension.h"
|
#include "extension.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -430,5 +431,13 @@ bool Translate(char *buffer,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *ClientPrefs::GetVersion()
|
||||||
|
{
|
||||||
|
return SM_FULL_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *ClientPrefs::GetDate()
|
||||||
|
{
|
||||||
|
return SM_BUILD_TIMESTAMP;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -84,6 +84,9 @@ public:
|
|||||||
|
|
||||||
virtual void NotifyInterfaceDrop(SMInterface *pInterface);
|
virtual void NotifyInterfaceDrop(SMInterface *pInterface);
|
||||||
|
|
||||||
|
const char *GetVersion();
|
||||||
|
const char *GetDate();
|
||||||
|
|
||||||
void DatabaseConnect();
|
void DatabaseConnect();
|
||||||
|
|
||||||
bool AddQueryToQueue(TQueryOp *query);
|
bool AddQueryToQueue(TQueryOp *query);
|
||||||
|
@ -37,17 +37,15 @@
|
|||||||
* @brief Contains macros for configuring basic extension information.
|
* @brief Contains macros for configuring basic extension information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "svn_version.h"
|
|
||||||
|
|
||||||
/* Basic information exposed publicly */
|
/* Basic information exposed publicly */
|
||||||
#define SMEXT_CONF_NAME "Client Preferences"
|
#define SMEXT_CONF_NAME "Client Preferences"
|
||||||
#define SMEXT_CONF_DESCRIPTION "Saves client preference settings"
|
#define SMEXT_CONF_DESCRIPTION "Saves client preference settings"
|
||||||
#define SMEXT_CONF_VERSION SVN_FULL_VERSION
|
#define SMEXT_CONF_VERSION ""
|
||||||
#define SMEXT_CONF_AUTHOR "AlliedModders"
|
#define SMEXT_CONF_AUTHOR "AlliedModders"
|
||||||
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
||||||
#define SMEXT_CONF_LOGTAG "CLIENTPREFS"
|
#define SMEXT_CONF_LOGTAG "CLIENTPREFS"
|
||||||
#define SMEXT_CONF_LICENSE "GPL"
|
#define SMEXT_CONF_LICENSE "GPL"
|
||||||
#define SMEXT_CONF_DATESTRING __DATE__ " " __TIME__
|
#define SMEXT_CONF_DATESTRING ""
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Exposes plugin's main interface.
|
* @brief Exposes plugin's main interface.
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod SDKTools Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_CLIENTPREFS_VERSION_H_
|
|
||||||
#define _INCLUDE_CLIENTPREFS_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_CLIENTPREFS_VERSION_H_
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod SDKTools Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_CLIENTPREFS_VERSION_H_
|
|
||||||
#define _INCLUDE_CLIENTPREFS_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_CLIENTPREFS_VERSION_H_
|
|
@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -29,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -47,12 +47,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "Client Preferences Extension"
|
VALUE "Comments", "Client Preferences Extension"
|
||||||
VALUE "FileDescription", "SourceMod Client Preferences Extension"
|
VALUE "FileDescription", "SourceMod Client Preferences Extension"
|
||||||
VALUE "FileVersion", SVN_FULL_VERSION
|
VALUE "FileVersion", SM_FULL_VERSION
|
||||||
VALUE "InternalName", "SourceMod Client Preferences Extension"
|
VALUE "InternalName", "SourceMod Client Preferences Extension"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
||||||
VALUE "OriginalFilename", BINARY_NAME
|
VALUE "OriginalFilename", BINARY_NAME
|
||||||
VALUE "ProductName", "SourceMod Client Preferences Extension"
|
VALUE "ProductName", "SourceMod Client Preferences Extension"
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sourcemod_version.h>
|
||||||
#include "extension.h"
|
#include "extension.h"
|
||||||
#include "RegNatives.h"
|
#include "RegNatives.h"
|
||||||
#include "timeleft.h"
|
#include "timeleft.h"
|
||||||
@ -250,3 +251,14 @@ bool CStrike::ProcessCommandTarget(cmd_target_info_t *info)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *CStrike::GetVersion()
|
||||||
|
{
|
||||||
|
return SM_FULL_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *CStrike::GetDate()
|
||||||
|
{
|
||||||
|
return SM_BUILD_TIMESTAMP;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -86,6 +86,9 @@ public:
|
|||||||
|
|
||||||
void NotifyInterfaceDrop(SMInterface *pInterface);
|
void NotifyInterfaceDrop(SMInterface *pInterface);
|
||||||
bool QueryInterfaceDrop(SMInterface *pInterface);
|
bool QueryInterfaceDrop(SMInterface *pInterface);
|
||||||
|
|
||||||
|
const char *GetVersion();
|
||||||
|
const char *GetDate();
|
||||||
public:
|
public:
|
||||||
bool ProcessCommandTarget(cmd_target_info_t *info);
|
bool ProcessCommandTarget(cmd_target_info_t *info);
|
||||||
public:
|
public:
|
||||||
|
@ -37,17 +37,15 @@
|
|||||||
* @brief Contains macros for configuring basic extension information.
|
* @brief Contains macros for configuring basic extension information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "svn_version.h"
|
|
||||||
|
|
||||||
/* Basic information exposed publicly */
|
/* Basic information exposed publicly */
|
||||||
#define SMEXT_CONF_NAME "CS:S Tools"
|
#define SMEXT_CONF_NAME "CS:S Tools"
|
||||||
#define SMEXT_CONF_DESCRIPTION "CS:S extended functionality"
|
#define SMEXT_CONF_DESCRIPTION "CS:S extended functionality"
|
||||||
#define SMEXT_CONF_VERSION SVN_FULL_VERSION
|
#define SMEXT_CONF_VERSION ""
|
||||||
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
||||||
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
||||||
#define SMEXT_CONF_LOGTAG "CSTRIKE"
|
#define SMEXT_CONF_LOGTAG "CSTRIKE"
|
||||||
#define SMEXT_CONF_LICENSE "GPL"
|
#define SMEXT_CONF_LICENSE "GPL"
|
||||||
#define SMEXT_CONF_DATESTRING __DATE__ " " __TIME__
|
#define SMEXT_CONF_DATESTRING ""
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Exposes plugin's main interface.
|
* @brief Exposes plugin's main interface.
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod Counter-Strike:Source Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SDKTOOLS_VERSION_H_
|
|
||||||
#define _INCLUDE_SDKTOOLS_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SDKTOOLS_VERSION_H_
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod Counter-Strike:Source Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SDKTOOLS_VERSION_H_
|
|
||||||
#define _INCLUDE_SDKTOOLS_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SDKTOOLS_VERSION_H_
|
|
@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -29,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -47,12 +47,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "SourceMod CS:S Extension"
|
VALUE "Comments", "SourceMod CS:S Extension"
|
||||||
VALUE "FileDescription", "SourceMod CS:S Extension"
|
VALUE "FileDescription", "SourceMod CS:S Extension"
|
||||||
VALUE "FileVersion", SVN_FULL_VERSION
|
VALUE "FileVersion", SM_FULL_VERSION
|
||||||
VALUE "InternalName", "SourceMod CS:S Extension"
|
VALUE "InternalName", "SourceMod CS:S Extension"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
||||||
VALUE "OriginalFilename", BINARY_NAME
|
VALUE "OriginalFilename", BINARY_NAME
|
||||||
VALUE "ProductName", "SourceMod CS:S Extension"
|
VALUE "ProductName", "SourceMod CS:S Extension"
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sourcemod_version.h>
|
||||||
#include "extension.h"
|
#include "extension.h"
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <sm_platform.h>
|
#include <sm_platform.h>
|
||||||
@ -74,3 +75,14 @@ void CurlExt::SDK_OnUnload()
|
|||||||
{
|
{
|
||||||
curl_global_cleanup();
|
curl_global_cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *CurlExt::GetVersion()
|
||||||
|
{
|
||||||
|
return SM_FULL_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *CurlExt::GetDate()
|
||||||
|
{
|
||||||
|
return SM_BUILD_TIMESTAMP;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -81,6 +81,8 @@ public:
|
|||||||
* @return True if working, false otherwise.
|
* @return True if working, false otherwise.
|
||||||
*/
|
*/
|
||||||
//virtual bool QueryRunning(char *error, size_t maxlength);
|
//virtual bool QueryRunning(char *error, size_t maxlength);
|
||||||
|
const char *GetVersion();
|
||||||
|
const char *GetDate();
|
||||||
public:
|
public:
|
||||||
#if defined SMEXT_CONF_METAMOD
|
#if defined SMEXT_CONF_METAMOD
|
||||||
/**
|
/**
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
|
|
||||||
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
||||||
#define _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
#define _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
||||||
#include "svn_version.h"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file smsdk_config.h
|
* @file smsdk_config.h
|
||||||
@ -41,12 +40,12 @@
|
|||||||
/* Basic information exposed publicly */
|
/* Basic information exposed publicly */
|
||||||
#define SMEXT_CONF_NAME "Webternet"
|
#define SMEXT_CONF_NAME "Webternet"
|
||||||
#define SMEXT_CONF_DESCRIPTION "Extension for interacting with URLs"
|
#define SMEXT_CONF_DESCRIPTION "Extension for interacting with URLs"
|
||||||
#define SMEXT_CONF_VERSION SVN_FULL_VERSION
|
#define SMEXT_CONF_VERSION ""
|
||||||
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
||||||
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
||||||
#define SMEXT_CONF_LOGTAG "WEB"
|
#define SMEXT_CONF_LOGTAG "WEB"
|
||||||
#define SMEXT_CONF_LICENSE "GPL"
|
#define SMEXT_CONF_LICENSE "GPL"
|
||||||
#define SMEXT_CONF_DATESTRING __DATE__
|
#define SMEXT_CONF_DATESTRING ""
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Exposes plugin's main interface.
|
* @brief Exposes plugin's main interface.
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod GeoIP Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_GEOIP_VERSION_H_
|
|
||||||
#define _INCLUDE_GEOIP_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_GEOIP_VERSION_H_
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod GeoIP Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_GEOIP_VERSION_H_
|
|
||||||
#define _INCLUDE_GEOIP_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_GEOIP_VERSION_H_
|
|
@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -29,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -47,12 +47,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "Webternet Extension"
|
VALUE "Comments", "Webternet Extension"
|
||||||
VALUE "FileDescription", "SourceMod Webternet Extension"
|
VALUE "FileDescription", "SourceMod Webternet Extension"
|
||||||
VALUE "FileVersion", SVN_FULL_VERSION
|
VALUE "FileVersion", SM_FULL_VERSION
|
||||||
VALUE "InternalName", "SourceMod Webternet Extension"
|
VALUE "InternalName", "SourceMod Webternet Extension"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2009, AlliedModders LLC"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2009, AlliedModders LLC"
|
||||||
VALUE "OriginalFilename", BINARY_NAME
|
VALUE "OriginalFilename", BINARY_NAME
|
||||||
VALUE "ProductName", "SourceMod Webternet Extension"
|
VALUE "ProductName", "SourceMod Webternet Extension"
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sourcemod_version.h>
|
||||||
#include "extension.h"
|
#include "extension.h"
|
||||||
#include "GeoIP.h"
|
#include "GeoIP.h"
|
||||||
|
|
||||||
@ -67,6 +68,16 @@ void GeoIP_Extension::SDK_OnUnload()
|
|||||||
gi = NULL;
|
gi = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *GeoIP_Extension::GetVersion()
|
||||||
|
{
|
||||||
|
return SM_FULL_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *GeoIP_Extension::GetDate()
|
||||||
|
{
|
||||||
|
return SM_BUILD_TIMESTAMP;
|
||||||
|
}
|
||||||
|
|
||||||
/*******************************
|
/*******************************
|
||||||
* *
|
* *
|
||||||
* GEOIP NATIVE IMPLEMENTATIONS *
|
* GEOIP NATIVE IMPLEMENTATIONS *
|
||||||
@ -131,3 +142,4 @@ const sp_nativeinfo_t geoip_natives[] =
|
|||||||
{"GeoipCountry", sm_Geoip_Country},
|
{"GeoipCountry", sm_Geoip_Country},
|
||||||
{NULL, NULL},
|
{NULL, NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -62,6 +62,9 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual void SDK_OnUnload();
|
virtual void SDK_OnUnload();
|
||||||
|
|
||||||
|
const char *GetVersion();
|
||||||
|
const char *GetDate();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This is called once all known extensions have been loaded.
|
* @brief This is called once all known extensions have been loaded.
|
||||||
* Note: It is is a good idea to add natives here, if any are provided.
|
* Note: It is is a good idea to add natives here, if any are provided.
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
|
|
||||||
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
||||||
#define _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
#define _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
||||||
#include "svn_version.h"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file smsdk_config.h
|
* @file smsdk_config.h
|
||||||
@ -41,12 +40,12 @@
|
|||||||
/* Basic information exposed publicly */
|
/* Basic information exposed publicly */
|
||||||
#define SMEXT_CONF_NAME "GeoIP"
|
#define SMEXT_CONF_NAME "GeoIP"
|
||||||
#define SMEXT_CONF_DESCRIPTION "Geographical IP information"
|
#define SMEXT_CONF_DESCRIPTION "Geographical IP information"
|
||||||
#define SMEXT_CONF_VERSION SVN_FULL_VERSION
|
#define SMEXT_CONF_VERSION ""
|
||||||
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
||||||
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
||||||
#define SMEXT_CONF_LOGTAG "GEOIP"
|
#define SMEXT_CONF_LOGTAG "GEOIP"
|
||||||
#define SMEXT_CONF_LICENSE "GPL"
|
#define SMEXT_CONF_LICENSE "GPL"
|
||||||
#define SMEXT_CONF_DATESTRING __DATE__ " " __TIME__
|
#define SMEXT_CONF_DATESTRING ""
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Exposes plugin's main interface.
|
* @brief Exposes plugin's main interface.
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod GeoIP Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_GEOIP_VERSION_H_
|
|
||||||
#define _INCLUDE_GEOIP_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_GEOIP_VERSION_H_
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod GeoIP Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_GEOIP_VERSION_H_
|
|
||||||
#define _INCLUDE_GEOIP_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_GEOIP_VERSION_H_
|
|
@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -29,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -47,12 +47,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "GeoIP Extension"
|
VALUE "Comments", "GeoIP Extension"
|
||||||
VALUE "FileDescription", "SourceMod GeoIP Extension"
|
VALUE "FileDescription", "SourceMod GeoIP Extension"
|
||||||
VALUE "FileVersion", SVN_FULL_VERSION
|
VALUE "FileVersion", SM_FULL_VERSION
|
||||||
VALUE "InternalName", "SourceMod GeoIP Extension"
|
VALUE "InternalName", "SourceMod GeoIP Extension"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
||||||
VALUE "OriginalFilename", BINARY_NAME
|
VALUE "OriginalFilename", BINARY_NAME
|
||||||
VALUE "ProductName", "SourceMod GeoIP Extension"
|
VALUE "ProductName", "SourceMod GeoIP Extension"
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sourcemod_version.h>
|
||||||
#include "extension.h"
|
#include "extension.h"
|
||||||
#include "mysql/MyDriver.h"
|
#include "mysql/MyDriver.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -58,3 +59,14 @@ void DBI_MySQL::SDK_OnUnload()
|
|||||||
//:TODO: is this needed?
|
//:TODO: is this needed?
|
||||||
//mysql_library_end();
|
//mysql_library_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *DBI_MySQL::GetVersion()
|
||||||
|
{
|
||||||
|
return SM_FULL_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *DBI_MySQL::GetDate()
|
||||||
|
{
|
||||||
|
return SM_BUILD_TIMESTAMP;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -81,6 +81,8 @@ public:
|
|||||||
* @return True if working, false otherwise.
|
* @return True if working, false otherwise.
|
||||||
*/
|
*/
|
||||||
//virtual bool QueryRunning(char *error, size_t maxlength);
|
//virtual bool QueryRunning(char *error, size_t maxlength);
|
||||||
|
const char *GetVersion();
|
||||||
|
const char *GetDate();
|
||||||
public:
|
public:
|
||||||
#if defined SMEXT_CONF_METAMOD
|
#if defined SMEXT_CONF_METAMOD
|
||||||
/**
|
/**
|
||||||
|
@ -37,17 +37,15 @@
|
|||||||
* @brief Contains macros for configuring basic extension information.
|
* @brief Contains macros for configuring basic extension information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "svn_version.h"
|
|
||||||
|
|
||||||
/* Basic information exposed publicly */
|
/* Basic information exposed publicly */
|
||||||
#define SMEXT_CONF_NAME "MySQL-DBI"
|
#define SMEXT_CONF_NAME "MySQL-DBI"
|
||||||
#define SMEXT_CONF_DESCRIPTION "MySQL driver implementation for DBI"
|
#define SMEXT_CONF_DESCRIPTION "MySQL driver implementation for DBI"
|
||||||
#define SMEXT_CONF_VERSION SVN_FULL_VERSION
|
#define SMEXT_CONF_VERSION ""
|
||||||
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
||||||
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
||||||
#define SMEXT_CONF_LOGTAG "MYSQL"
|
#define SMEXT_CONF_LOGTAG "MYSQL"
|
||||||
#define SMEXT_CONF_LICENSE "GPL"
|
#define SMEXT_CONF_LICENSE "GPL"
|
||||||
#define SMEXT_CONF_DATESTRING __DATE__ " " __TIME__
|
#define SMEXT_CONF_DATESTRING ""
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Exposes plugin's main interface.
|
* @brief Exposes plugin's main interface.
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod MySQL Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_MYSQLEXT_VERSION_H_
|
|
||||||
#define _INCLUDE_MYSQLEXT_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_MYSQLEXT_VERSION_H_
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod MySQL Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_MYSQLEXT_VERSION_H_
|
|
||||||
#define _INCLUDE_MYSQLEXT_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_MYSQLEXT_VERSION_H_
|
|
@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -29,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -47,12 +47,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "MySQL Extension"
|
VALUE "Comments", "MySQL Extension"
|
||||||
VALUE "FileDescription", "SourceMod MySQL Extension"
|
VALUE "FileDescription", "SourceMod MySQL Extension"
|
||||||
VALUE "FileVersion", SVN_FULL_VERSION
|
VALUE "FileVersion", SM_FULL_VERSION
|
||||||
VALUE "InternalName", "SourceMod MySQL Extension"
|
VALUE "InternalName", "SourceMod MySQL Extension"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
||||||
VALUE "OriginalFilename", BINARY_NAME
|
VALUE "OriginalFilename", BINARY_NAME
|
||||||
VALUE "ProductName", "SourceMod MySQL Extension"
|
VALUE "ProductName", "SourceMod MySQL Extension"
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -29,8 +29,8 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sourcemod_version.h>
|
||||||
#include "extension.h"
|
#include "extension.h"
|
||||||
|
|
||||||
#include <sh_string.h>
|
#include <sh_string.h>
|
||||||
#include "pcre.h"
|
#include "pcre.h"
|
||||||
#include "CRegEx.h"
|
#include "CRegEx.h"
|
||||||
@ -63,6 +63,16 @@ void RegexExtension::SDK_OnUnload()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *RegexExtension::GetVersion()
|
||||||
|
{
|
||||||
|
return SM_FULL_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *RegexExtension::GetDate()
|
||||||
|
{
|
||||||
|
return SM_BUILD_TIMESTAMP;
|
||||||
|
}
|
||||||
|
|
||||||
static cell_t CompileRegex(IPluginContext *pCtx, const cell_t *params)
|
static cell_t CompileRegex(IPluginContext *pCtx, const cell_t *params)
|
||||||
{
|
{
|
||||||
char *regex;
|
char *regex;
|
||||||
|
@ -62,6 +62,9 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual void SDK_OnUnload();
|
virtual void SDK_OnUnload();
|
||||||
|
|
||||||
|
const char *GetVersion();
|
||||||
|
const char *GetDate();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This is called once all known extensions have been loaded.
|
* @brief This is called once all known extensions have been loaded.
|
||||||
* Note: It is is a good idea to add natives here, if any are provided.
|
* Note: It is is a good idea to add natives here, if any are provided.
|
||||||
|
@ -32,8 +32,6 @@
|
|||||||
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
||||||
#define _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
#define _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
||||||
|
|
||||||
#include "svn_version.h"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file smsdk_config.h
|
* @file smsdk_config.h
|
||||||
* @brief Contains macros for configuring basic extension information.
|
* @brief Contains macros for configuring basic extension information.
|
||||||
@ -42,12 +40,12 @@
|
|||||||
/* Basic information exposed publicly */
|
/* Basic information exposed publicly */
|
||||||
#define SMEXT_CONF_NAME "Regex"
|
#define SMEXT_CONF_NAME "Regex"
|
||||||
#define SMEXT_CONF_DESCRIPTION "Provides regex natives for plugins"
|
#define SMEXT_CONF_DESCRIPTION "Provides regex natives for plugins"
|
||||||
#define SMEXT_CONF_VERSION SVN_FULL_VERSION
|
#define SMEXT_CONF_VERSION ""
|
||||||
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
||||||
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
||||||
#define SMEXT_CONF_LOGTAG "REGEX"
|
#define SMEXT_CONF_LOGTAG "REGEX"
|
||||||
#define SMEXT_CONF_LICENSE "GPL"
|
#define SMEXT_CONF_LICENSE "GPL"
|
||||||
#define SMEXT_CONF_DATESTRING __DATE__ " " __TIME__
|
#define SMEXT_CONF_DATESTRING ""
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Exposes plugin's main interface.
|
* @brief Exposes plugin's main interface.
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod Regular Expressions Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_REGEXEXT_VERSION_H_
|
|
||||||
#define _INCLUDE_REGEXEXT_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_REGEXEXT_VERSION_H_
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod Regular Expressions Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_REGEXEXT_VERSION_H_
|
|
||||||
#define _INCLUDE_REGEXEXT_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_REGEXEXT_VERSION_H_
|
|
@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -29,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -47,12 +47,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "SourceMod Regular Expression Extension"
|
VALUE "Comments", "SourceMod Regular Expression Extension"
|
||||||
VALUE "FileDescription", "SourceMod Regular Expression Extension"
|
VALUE "FileDescription", "SourceMod Regular Expression Extension"
|
||||||
VALUE "FileVersion", SVN_FULL_VERSION
|
VALUE "FileVersion", SM_FULL_VERSION
|
||||||
VALUE "InternalName", "SourceMod Regular Expression Extension"
|
VALUE "InternalName", "SourceMod Regular Expression Extension"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
||||||
VALUE "OriginalFilename", BINARY_NAME
|
VALUE "OriginalFilename", BINARY_NAME
|
||||||
VALUE "ProductName", "SourceMod Regular Expression Extension"
|
VALUE "ProductName", "SourceMod Regular Expression Extension"
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sourcemod_version.h>
|
||||||
#include "extension.h"
|
#include "extension.h"
|
||||||
#include <compat_wrappers.h>
|
#include <compat_wrappers.h>
|
||||||
#include "vcallbuilder.h"
|
#include "vcallbuilder.h"
|
||||||
@ -382,9 +383,14 @@ bool SDKTools::ProcessCommandTarget(cmd_target_info_t *info)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDKTools::OnClientPutInServer(int client)
|
const char *SDKTools::GetVersion()
|
||||||
{
|
{
|
||||||
g_Hooks.OnClientPutInServer(client);
|
return SM_FULL_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *SDKTools::GetDate()
|
||||||
|
{
|
||||||
|
return SM_BUILD_TIMESTAMP;
|
||||||
}
|
}
|
||||||
|
|
||||||
class SDKTools_API : public ISDKTools
|
class SDKTools_API : public ISDKTools
|
||||||
|
@ -73,6 +73,8 @@ public: //public SDKExtension
|
|||||||
virtual bool QueryInterfaceDrop(SMInterface *pInterface);
|
virtual bool QueryInterfaceDrop(SMInterface *pInterface);
|
||||||
virtual void NotifyInterfaceDrop(SMInterface *pInterface);
|
virtual void NotifyInterfaceDrop(SMInterface *pInterface);
|
||||||
virtual void OnCoreMapStart(edict_t *pEdictList, int edictCount, int clientMax);
|
virtual void OnCoreMapStart(edict_t *pEdictList, int edictCount, int clientMax);
|
||||||
|
const char *GetVersion();
|
||||||
|
const char *GetDate();
|
||||||
public:
|
public:
|
||||||
#if defined SMEXT_CONF_METAMOD
|
#if defined SMEXT_CONF_METAMOD
|
||||||
virtual bool SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlen, bool late);
|
virtual bool SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlen, bool late);
|
||||||
|
@ -37,17 +37,15 @@
|
|||||||
* @brief Contains macros for configuring basic extension information.
|
* @brief Contains macros for configuring basic extension information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "svn_version.h"
|
|
||||||
|
|
||||||
/* Basic information exposed publicly */
|
/* Basic information exposed publicly */
|
||||||
#define SMEXT_CONF_NAME "SDK Tools"
|
#define SMEXT_CONF_NAME "SDK Tools"
|
||||||
#define SMEXT_CONF_DESCRIPTION "Source SDK Tools"
|
#define SMEXT_CONF_DESCRIPTION "Source SDK Tools"
|
||||||
#define SMEXT_CONF_VERSION SVN_FULL_VERSION
|
#define SMEXT_CONF_VERSION ""
|
||||||
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
||||||
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
||||||
#define SMEXT_CONF_LOGTAG "SDKTOOLS"
|
#define SMEXT_CONF_LOGTAG "SDKTOOLS"
|
||||||
#define SMEXT_CONF_LICENSE "GPL"
|
#define SMEXT_CONF_LICENSE "GPL"
|
||||||
#define SMEXT_CONF_DATESTRING __DATE__ " " __TIME__
|
#define SMEXT_CONF_DATESTRING ""
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Exposes plugin's main interface.
|
* @brief Exposes plugin's main interface.
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod SDKTools Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SDKTOOLS_VERSION_H_
|
|
||||||
#define _INCLUDE_SDKTOOLS_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SDKTOOLS_VERSION_H_
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod SDKTools Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SDKTOOLS_VERSION_H_
|
|
||||||
#define _INCLUDE_SDKTOOLS_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SDKTOOLS_VERSION_H_
|
|
@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -29,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -47,12 +47,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "SDKTools Extension"
|
VALUE "Comments", "SDKTools Extension"
|
||||||
VALUE "FileDescription", "SourceMod SDKTools Extension"
|
VALUE "FileDescription", "SourceMod SDKTools Extension"
|
||||||
VALUE "FileVersion", SVN_FULL_VERSION
|
VALUE "FileVersion", SM_FULL_VERSION
|
||||||
VALUE "InternalName", "SourceMod SDKTools Extension"
|
VALUE "InternalName", "SourceMod SDKTools Extension"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
||||||
VALUE "OriginalFilename", BINARY_NAME
|
VALUE "OriginalFilename", BINARY_NAME
|
||||||
VALUE "ProductName", "SourceMod SDKTools Extension"
|
VALUE "ProductName", "SourceMod SDKTools Extension"
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sourcemod_version.h>
|
||||||
#include "extension.h"
|
#include "extension.h"
|
||||||
#include "driver/SqDriver.h"
|
#include "driver/SqDriver.h"
|
||||||
|
|
||||||
@ -70,3 +71,14 @@ size_t UTIL_Format(char *buffer, size_t maxlength, const char *fmt, ...)
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *SqliteExt::GetVersion()
|
||||||
|
{
|
||||||
|
return SM_FULL_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *SqliteExt::GetDate()
|
||||||
|
{
|
||||||
|
return SM_BUILD_TIMESTAMP;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -62,6 +62,9 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual void SDK_OnUnload();
|
virtual void SDK_OnUnload();
|
||||||
|
|
||||||
|
const char *GetVersion();
|
||||||
|
const char *GetDate();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This is called once all known extensions have been loaded.
|
* @brief This is called once all known extensions have been loaded.
|
||||||
* Note: It is is a good idea to add natives here, if any are provided.
|
* Note: It is is a good idea to add natives here, if any are provided.
|
||||||
|
@ -32,8 +32,6 @@
|
|||||||
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
||||||
#define _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
#define _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
||||||
|
|
||||||
#include "svn_version.h"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file smsdk_config.h
|
* @file smsdk_config.h
|
||||||
* @brief Contains macros for configuring basic extension information.
|
* @brief Contains macros for configuring basic extension information.
|
||||||
@ -42,12 +40,12 @@
|
|||||||
/* Basic information exposed publicly */
|
/* Basic information exposed publicly */
|
||||||
#define SMEXT_CONF_NAME "SQLite"
|
#define SMEXT_CONF_NAME "SQLite"
|
||||||
#define SMEXT_CONF_DESCRIPTION "SQLite Driver"
|
#define SMEXT_CONF_DESCRIPTION "SQLite Driver"
|
||||||
#define SMEXT_CONF_VERSION SVN_FULL_VERSION
|
#define SMEXT_CONF_VERSION ""
|
||||||
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
||||||
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
||||||
#define SMEXT_CONF_LOGTAG "SQLITE"
|
#define SMEXT_CONF_LOGTAG "SQLITE"
|
||||||
#define SMEXT_CONF_LICENSE "GPL"
|
#define SMEXT_CONF_LICENSE "GPL"
|
||||||
#define SMEXT_CONF_DATESTRING __DATE__ " " __TIME__
|
#define SMEXT_CONF_DATESTRING ""
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Exposes plugin's main interface.
|
* @brief Exposes plugin's main interface.
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod SQLite Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SQLITEEXT_VERSION_H_
|
|
||||||
#define _INCLUDE_SQLITEEXT_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SQLITEEXT_VERSION_H_
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod SQLite Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SQLITEEXT_VERSION_H_
|
|
||||||
#define _INCLUDE_SQLITEEXT_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SQLITEEXT_VERSION_H_
|
|
@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -29,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -47,12 +47,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "SQLite Extension"
|
VALUE "Comments", "SQLite Extension"
|
||||||
VALUE "FileDescription", "SourceMod SQLite Extension"
|
VALUE "FileDescription", "SourceMod SQLite Extension"
|
||||||
VALUE "FileVersion", SVN_FULL_VERSION
|
VALUE "FileVersion", SM_FULL_VERSION
|
||||||
VALUE "InternalName", "SourceMod SQLite Extension"
|
VALUE "InternalName", "SourceMod SQLite Extension"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
||||||
VALUE "OriginalFilename", BINARY_NAME
|
VALUE "OriginalFilename", BINARY_NAME
|
||||||
VALUE "ProductName", "SourceMod SQLite Extension"
|
VALUE "ProductName", "SourceMod SQLite Extension"
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sourcemod_version.h>
|
||||||
#include "extension.h"
|
#include "extension.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "RegNatives.h"
|
#include "RegNatives.h"
|
||||||
@ -115,6 +116,16 @@ bool TF2Tools::SDK_OnLoad(char *error, size_t maxlength, bool late)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *TF2Tools::GetVersion()
|
||||||
|
{
|
||||||
|
return SM_FULL_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *TF2Tools::GetDate()
|
||||||
|
{
|
||||||
|
return SM_BUILD_TIMESTAMP;
|
||||||
|
}
|
||||||
|
|
||||||
bool TF2Tools::SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlen, bool late)
|
bool TF2Tools::SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlen, bool late)
|
||||||
{
|
{
|
||||||
GET_V_IFACE_CURRENT(GetEngineFactory, engine, IVEngineServer, INTERFACEVERSION_VENGINESERVER);
|
GET_V_IFACE_CURRENT(GetEngineFactory, engine, IVEngineServer, INTERFACEVERSION_VENGINESERVER);
|
||||||
|
@ -86,6 +86,9 @@ public: //SDKExtension
|
|||||||
|
|
||||||
void NotifyInterfaceDrop(SMInterface *pInterface);
|
void NotifyInterfaceDrop(SMInterface *pInterface);
|
||||||
bool QueryInterfaceDrop(SMInterface *pInterface);
|
bool QueryInterfaceDrop(SMInterface *pInterface);
|
||||||
|
|
||||||
|
const char *GetVersion();
|
||||||
|
const char *GetDate();
|
||||||
public: //ICommandTargetProcessor
|
public: //ICommandTargetProcessor
|
||||||
bool ProcessCommandTarget(cmd_target_info_t *info);
|
bool ProcessCommandTarget(cmd_target_info_t *info);
|
||||||
public: //IConCommandBaseAccessor
|
public: //IConCommandBaseAccessor
|
||||||
|
@ -37,17 +37,15 @@
|
|||||||
* @brief Contains macros for configuring basic extension information.
|
* @brief Contains macros for configuring basic extension information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "svn_version.h"
|
|
||||||
|
|
||||||
/* Basic information exposed publicly */
|
/* Basic information exposed publicly */
|
||||||
#define SMEXT_CONF_NAME "TF2 Tools"
|
#define SMEXT_CONF_NAME "TF2 Tools"
|
||||||
#define SMEXT_CONF_DESCRIPTION "TF2 extended functionality"
|
#define SMEXT_CONF_DESCRIPTION "TF2 extended functionality"
|
||||||
#define SMEXT_CONF_VERSION SVN_FULL_VERSION
|
#define SMEXT_CONF_VERSION ""
|
||||||
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
||||||
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
||||||
#define SMEXT_CONF_LOGTAG "TF2"
|
#define SMEXT_CONF_LOGTAG "TF2"
|
||||||
#define SMEXT_CONF_LICENSE "GPL"
|
#define SMEXT_CONF_LICENSE "GPL"
|
||||||
#define SMEXT_CONF_DATESTRING __DATE__ " " __TIME__
|
#define SMEXT_CONF_DATESTRING ""
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Exposes plugin's main interface.
|
* @brief Exposes plugin's main interface.
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod Team Fortress 2 Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SDKTOOLS_VERSION_H_
|
|
||||||
#define _INCLUDE_SDKTOOLS_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SDKTOOLS_VERSION_H_
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod Team Fortress 2 Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SDKTOOLS_VERSION_H_
|
|
||||||
#define _INCLUDE_SDKTOOLS_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SDKTOOLS_VERSION_H_
|
|
@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -29,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -47,12 +47,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "SourceMod TF2 Extension"
|
VALUE "Comments", "SourceMod TF2 Extension"
|
||||||
VALUE "FileDescription", "SourceMod TF2 Extension"
|
VALUE "FileDescription", "SourceMod TF2 Extension"
|
||||||
VALUE "FileVersion", SVN_FULL_VERSION
|
VALUE "FileVersion", SM_FULL_VERSION
|
||||||
VALUE "InternalName", "SourceMod TF2 Extension"
|
VALUE "InternalName", "SourceMod TF2 Extension"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
||||||
VALUE "OriginalFilename", BINARY_NAME
|
VALUE "OriginalFilename", BINARY_NAME
|
||||||
VALUE "ProductName", "SourceMod TF2 Extension"
|
VALUE "ProductName", "SourceMod TF2 Extension"
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sourcemod_version.h>
|
||||||
#include "extension.h"
|
#include "extension.h"
|
||||||
#include "TopMenuManager.h"
|
#include "TopMenuManager.h"
|
||||||
#include "smn_topmenus.h"
|
#include "smn_topmenus.h"
|
||||||
@ -64,3 +65,13 @@ void TopMenuExtension::SDK_OnUnload()
|
|||||||
plsys->RemovePluginsListener(&g_TopMenus);
|
plsys->RemovePluginsListener(&g_TopMenus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *TopMenuExtension::GetVersion()
|
||||||
|
{
|
||||||
|
return SM_FULL_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *TopMenuExtension::GetDate()
|
||||||
|
{
|
||||||
|
return SM_BUILD_TIMESTAMP;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -61,6 +61,9 @@ public:
|
|||||||
* @brief This is called right before the extension is unloaded.
|
* @brief This is called right before the extension is unloaded.
|
||||||
*/
|
*/
|
||||||
virtual void SDK_OnUnload();
|
virtual void SDK_OnUnload();
|
||||||
|
|
||||||
|
const char *GetVersion();
|
||||||
|
const char *GetDate();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_
|
#endif // _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_
|
||||||
|
@ -37,17 +37,15 @@
|
|||||||
* @brief Contains macros for configuring basic extension information.
|
* @brief Contains macros for configuring basic extension information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "svn_version.h"
|
|
||||||
|
|
||||||
/* Basic information exposed publicly */
|
/* Basic information exposed publicly */
|
||||||
#define SMEXT_CONF_NAME "Top Menus"
|
#define SMEXT_CONF_NAME "Top Menus"
|
||||||
#define SMEXT_CONF_DESCRIPTION "Creates sorted nested menus"
|
#define SMEXT_CONF_DESCRIPTION "Creates sorted nested menus"
|
||||||
#define SMEXT_CONF_VERSION SVN_FULL_VERSION
|
#define SMEXT_CONF_VERSION ""
|
||||||
#define SMEXT_CONF_AUTHOR "AlliedModders"
|
#define SMEXT_CONF_AUTHOR "AlliedModders"
|
||||||
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
||||||
#define SMEXT_CONF_LOGTAG "TOPMENUS"
|
#define SMEXT_CONF_LOGTAG "TOPMENUS"
|
||||||
#define SMEXT_CONF_LICENSE "GPLv3"
|
#define SMEXT_CONF_LICENSE "GPLv3"
|
||||||
#define SMEXT_CONF_DATESTRING __DATE__ " " __TIME__
|
#define SMEXT_CONF_DATESTRING ""
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Exposes plugin's main interface.
|
* @brief Exposes plugin's main interface.
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod TopMenus Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SQLITEEXT_VERSION_H_
|
|
||||||
#define _INCLUDE_SQLITEEXT_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SQLITEEXT_VERSION_H_
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod TopMenus Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SQLITEEXT_VERSION_H_
|
|
||||||
#define _INCLUDE_SQLITEEXT_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SQLITEEXT_VERSION_H_
|
|
@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -29,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -47,12 +47,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "TopMenus Extension"
|
VALUE "Comments", "TopMenus Extension"
|
||||||
VALUE "FileDescription", "SourceMod TopMenus Extension"
|
VALUE "FileDescription", "SourceMod TopMenus Extension"
|
||||||
VALUE "FileVersion", SVN_FULL_VERSION
|
VALUE "FileVersion", SM_FULL_VERSION
|
||||||
VALUE "InternalName", "SourceMod TopMenus Extension"
|
VALUE "InternalName", "SourceMod TopMenus Extension"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
||||||
VALUE "OriginalFilename", BINARY_NAME
|
VALUE "OriginalFilename", BINARY_NAME
|
||||||
VALUE "ProductName", "SourceMod TopMenus Extension"
|
VALUE "ProductName", "SourceMod TopMenus Extension"
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sourcemod_version.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "extension.h"
|
#include "extension.h"
|
||||||
#include "Updater.h"
|
#include "Updater.h"
|
||||||
@ -355,7 +356,7 @@ void UpdateReader::PerformUpdate(const char *url)
|
|||||||
xfer = webternet->CreateSession();
|
xfer = webternet->CreateSession();
|
||||||
xfer->SetFailOnHTTPError(true);
|
xfer->SetFailOnHTTPError(true);
|
||||||
|
|
||||||
form->AddString("version", SVN_FULL_VERSION);
|
form->AddString("version", SM_FULL_VERSION);
|
||||||
form->AddString("build", SM_BUILD_UNIQUEID);
|
form->AddString("build", SM_BUILD_UNIQUEID);
|
||||||
|
|
||||||
unsigned int num_files = 0;
|
unsigned int num_files = 0;
|
||||||
@ -401,3 +402,4 @@ UpdatePart *UpdateReader::DetachParts()
|
|||||||
|
|
||||||
return first;
|
return first;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sourcemod_version.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -245,3 +246,14 @@ void AddUpdateError(const char *fmt, ...)
|
|||||||
|
|
||||||
update_errors.push_back(new String(buffer));
|
update_errors.push_back(new String(buffer));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *SmUpdater::GetVersion()
|
||||||
|
{
|
||||||
|
return SM_FULL_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *SmUpdater::GetDate()
|
||||||
|
{
|
||||||
|
return SM_BUILD_TIMESTAMP;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -54,6 +54,8 @@ public: /* SDKExtension */
|
|||||||
public: /* IExtension */
|
public: /* IExtension */
|
||||||
bool QueryInterfaceDrop(SMInterface *pInterface);
|
bool QueryInterfaceDrop(SMInterface *pInterface);
|
||||||
void NotifyInterfaceDrop(SMInterface *pInterface);
|
void NotifyInterfaceDrop(SMInterface *pInterface);
|
||||||
|
const char *GetVersion();
|
||||||
|
const char *GetDate();
|
||||||
public: /* IThread */
|
public: /* IThread */
|
||||||
void RunThread(IThreadHandle *pHandle);
|
void RunThread(IThreadHandle *pHandle);
|
||||||
void OnTerminate(IThreadHandle *pHandle, bool cancel);
|
void OnTerminate(IThreadHandle *pHandle, bool cancel);
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
|
|
||||||
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
||||||
#define _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
#define _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
|
||||||
#include "svn_version.h"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file smsdk_config.h
|
* @file smsdk_config.h
|
||||||
@ -41,12 +40,12 @@
|
|||||||
/* Basic information exposed publicly */
|
/* Basic information exposed publicly */
|
||||||
#define SMEXT_CONF_NAME "Automatic Updater"
|
#define SMEXT_CONF_NAME "Automatic Updater"
|
||||||
#define SMEXT_CONF_DESCRIPTION "Updates SourceMod gamedata files"
|
#define SMEXT_CONF_DESCRIPTION "Updates SourceMod gamedata files"
|
||||||
#define SMEXT_CONF_VERSION SVN_FULL_VERSION
|
#define SMEXT_CONF_VERSION ""
|
||||||
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
#define SMEXT_CONF_AUTHOR "AlliedModders LLC"
|
||||||
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
#define SMEXT_CONF_URL "http://www.sourcemod.net/"
|
||||||
#define SMEXT_CONF_LOGTAG "UPDATER"
|
#define SMEXT_CONF_LOGTAG "UPDATER"
|
||||||
#define SMEXT_CONF_LICENSE "GPL"
|
#define SMEXT_CONF_LICENSE "GPL"
|
||||||
#define SMEXT_CONF_DATESTRING __DATE__
|
#define SMEXT_CONF_DATESTRING ""
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Exposes plugin's main interface.
|
* @brief Exposes plugin's main interface.
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod GeoIP Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_UPDATER_VERSION_H_
|
|
||||||
#define _INCLUDE_UPDATER_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_UPDATER_VERSION_H_
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod GeoIP Extension
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_UPDATER_VERSION_H_
|
|
||||||
#define _INCLUDE_UPDATER_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_UPDATER_VERSION_H_
|
|
@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -29,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -47,12 +47,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "Automatic Updater"
|
VALUE "Comments", "Automatic Updater"
|
||||||
VALUE "FileDescription", "SourceMod Automatic Updater"
|
VALUE "FileDescription", "SourceMod Automatic Updater"
|
||||||
VALUE "FileVersion", SVN_FILE_VERSION
|
VALUE "FileVersion", SM_FILE_VERSION
|
||||||
VALUE "InternalName", "SourceMod Updater Extension"
|
VALUE "InternalName", "SourceMod Updater Extension"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2009, AlliedModders LLC"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2009, AlliedModders LLC"
|
||||||
VALUE "OriginalFilename", BINARY_NAME
|
VALUE "OriginalFilename", BINARY_NAME
|
||||||
VALUE "ProductName", "SourceMod Updater Extension"
|
VALUE "ProductName", "SourceMod Updater Extension"
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SOURCEMOD_VERSION_H_
|
|
||||||
#define _INCLUDE_SOURCEMOD_VERSION_H_
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file Contains SourceMod version information.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SOURCEMOD_VERSION_H_
|
|
@ -1,48 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Autogenerated by build scripts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SOURCEMOD_VERSION_H_
|
|
||||||
#define _INCLUDE_SOURCEMOD_VERSION_H_
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file Contains SourceMod version information.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SOURCEMOD_VERSION_H_
|
|
@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -29,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -47,12 +47,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "SourceMod Loader"
|
VALUE "Comments", "SourceMod Loader"
|
||||||
VALUE "FileDescription", "SourceMod Loader"
|
VALUE "FileDescription", "SourceMod Loader"
|
||||||
VALUE "FileVersion", SVN_FULL_VERSION
|
VALUE "FileVersion", SM_FULL_VERSION
|
||||||
VALUE "InternalName", "sourcemod"
|
VALUE "InternalName", "sourcemod"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC"
|
||||||
VALUE "OriginalFilename", "sourcemod_mm.dll"
|
VALUE "OriginalFilename", "sourcemod_mm.dll"
|
||||||
VALUE "ProductName", "SourceMod Loader"
|
VALUE "ProductName", "SourceMod Loader"
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -1,90 +0,0 @@
|
|||||||
[PRODUCT]
|
|
||||||
major = 1
|
|
||||||
minor = 3
|
|
||||||
revision = 0
|
|
||||||
|
|
||||||
[core]
|
|
||||||
folder = core
|
|
||||||
in = sm_version.tpl
|
|
||||||
out = sm_version.h
|
|
||||||
|
|
||||||
[plugins]
|
|
||||||
folder = plugins/include
|
|
||||||
in = version.tpl
|
|
||||||
out = version.inc
|
|
||||||
|
|
||||||
[jitx86]
|
|
||||||
folder = sourcepawn/jit
|
|
||||||
in = jit_version.tpl
|
|
||||||
out = jit_version.h
|
|
||||||
|
|
||||||
[geoip]
|
|
||||||
folder = extensions/geoip
|
|
||||||
in = svn_version.tpl
|
|
||||||
out = svn_version.h
|
|
||||||
|
|
||||||
[compiler]
|
|
||||||
folder = sourcepawn/compiler
|
|
||||||
in = svn_version.tpl
|
|
||||||
out = svn_version.h
|
|
||||||
|
|
||||||
[bintools]
|
|
||||||
folder = extensions/bintools
|
|
||||||
in = svn_version.tpl
|
|
||||||
out = svn_version.h
|
|
||||||
|
|
||||||
[sdktools]
|
|
||||||
folder = extensions/sdktools
|
|
||||||
in = svn_version.tpl
|
|
||||||
out = svn_version.h
|
|
||||||
|
|
||||||
[mysql]
|
|
||||||
folder = extensions/mysql
|
|
||||||
in = svn_version.tpl
|
|
||||||
out = svn_version.h
|
|
||||||
|
|
||||||
[sqlite]
|
|
||||||
folder = extensions/sqlite
|
|
||||||
in = svn_version.tpl
|
|
||||||
out = svn_version.h
|
|
||||||
|
|
||||||
[cstrike]
|
|
||||||
folder = extensions/cstrike
|
|
||||||
in = svn_version.tpl
|
|
||||||
out = svn_version.h
|
|
||||||
|
|
||||||
[loader]
|
|
||||||
folder = loader
|
|
||||||
in = svn_version.tpl
|
|
||||||
out = svn_version.h
|
|
||||||
|
|
||||||
[topmenus]
|
|
||||||
folder = extensions/topmenus
|
|
||||||
in = svn_version.tpl
|
|
||||||
out = svn_version.h
|
|
||||||
|
|
||||||
[regex]
|
|
||||||
folder = extensions/regex
|
|
||||||
in = svn_version.tpl
|
|
||||||
out = svn_version.h
|
|
||||||
|
|
||||||
[tf2]
|
|
||||||
folder = extensions/tf2
|
|
||||||
in = svn_version.tpl
|
|
||||||
out = svn_version.h
|
|
||||||
|
|
||||||
[clientprefs]
|
|
||||||
folder = extensions/clientprefs
|
|
||||||
in = svn_version.tpl
|
|
||||||
out = svn_version.h
|
|
||||||
|
|
||||||
[curl]
|
|
||||||
folder = extensions/curl
|
|
||||||
in = svn_version.tpl
|
|
||||||
out = svn_version.h
|
|
||||||
|
|
||||||
[updater]
|
|
||||||
folder = extensions/updater
|
|
||||||
in = svn_version.tpl
|
|
||||||
out = svn_version.h
|
|
||||||
|
|
@ -1 +1 @@
|
|||||||
1.3.0
|
1.3.0-dev
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#else
|
#else
|
||||||
# include <ver.h>
|
# include <ver.h>
|
||||||
#endif
|
#endif
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
|
|
||||||
AppIcon ICON "pawn.ico"
|
AppIcon ICON "pawn.ico"
|
||||||
|
|
||||||
@ -19,8 +19,8 @@ AppIcon ICON "pawn.ico"
|
|||||||
#define VERSIONPRODUCTNAME "smcomp\0"
|
#define VERSIONPRODUCTNAME "smcomp\0"
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION SVN_FILE_VERSION
|
FILEVERSION SM_FILE_VERSION
|
||||||
PRODUCTVERSION SVN_FILE_VERSION
|
PRODUCTVERSION SM_FILE_VERSION
|
||||||
FILEFLAGSMASK 0x0000003FL
|
FILEFLAGSMASK 0x0000003FL
|
||||||
FILEFLAGS 0
|
FILEFLAGS 0
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
@ -36,12 +36,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "CompanyName", "(C)1998-2006 ITB CompuPhase, AlliedModders LLC\0"
|
VALUE "CompanyName", "(C)1998-2006 ITB CompuPhase, AlliedModders LLC\0"
|
||||||
VALUE "FileDescription", VERSIONDESCRIPTION
|
VALUE "FileDescription", VERSIONDESCRIPTION
|
||||||
VALUE "FileVersion", SVN_FULL_VERSION
|
VALUE "FileVersion", SM_FULL_VERSION
|
||||||
VALUE "InternalName", VERSIONNAME
|
VALUE "InternalName", VERSIONNAME
|
||||||
VALUE "LegalCopyright", "(C)1998-2006 ITB CompuPhase, AlliedModders LLC\0"
|
VALUE "LegalCopyright", "(C)1998-2006 ITB CompuPhase, AlliedModders LLC\0"
|
||||||
VALUE "OriginalFilename", VERSIONNAME
|
VALUE "OriginalFilename", VERSIONNAME
|
||||||
VALUE "ProductName", VERSIONPRODUCTNAME
|
VALUE "ProductName", VERSIONPRODUCTNAME
|
||||||
VALUE "ProductVersion", SVN_FULL_VERSION
|
VALUE "ProductVersion", SM_FULL_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
|
|
||||||
|
@ -8,6 +8,11 @@
|
|||||||
#include "amxdbg.h"
|
#include "amxdbg.h"
|
||||||
#include "osdefs.h"
|
#include "osdefs.h"
|
||||||
#include "zlib/zlib.h"
|
#include "zlib/zlib.h"
|
||||||
|
#if defined LINUX
|
||||||
|
#include <unistd.h>
|
||||||
|
#elif defined WIN32
|
||||||
|
#include <io.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
enum FileSections
|
enum FileSections
|
||||||
{
|
{
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
#if defined LINUX || defined __FreeBSD__ || defined __OpenBSD__
|
#if defined LINUX || defined __FreeBSD__ || defined __OpenBSD__
|
||||||
#include <sclinux.h>
|
#include <sclinux.h>
|
||||||
#include <binreloc.h> /* from BinReloc, see www.autopackage.org */
|
#include <binreloc.h> /* from BinReloc, see www.autopackage.org */
|
||||||
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined FORTIFY
|
#if defined FORTIFY
|
||||||
@ -65,7 +66,7 @@
|
|||||||
|
|
||||||
#include "lstring.h"
|
#include "lstring.h"
|
||||||
#include "sc.h"
|
#include "sc.h"
|
||||||
#include "svn_version.h"
|
#include <sourcemod_version.h>
|
||||||
#include "sctracker.h"
|
#include "sctracker.h"
|
||||||
#define VERSION_STR "3.2.3636"
|
#define VERSION_STR "3.2.3636"
|
||||||
#define VERSION_INT 0x0302
|
#define VERSION_INT 0x0302
|
||||||
@ -172,7 +173,7 @@ static int *wqptr; /* pointer to next entry */
|
|||||||
static HWND hwndFinish = 0;
|
static HWND hwndFinish = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SC_VDECL int glbstringread = 0;
|
int glbstringread = 0;
|
||||||
char g_tmpfile[_MAX_PATH] = {0};
|
char g_tmpfile[_MAX_PATH] = {0};
|
||||||
|
|
||||||
/* "main" of the compiler
|
/* "main" of the compiler
|
||||||
@ -805,24 +806,17 @@ SC_FUNC void set_extension(char *filename,char *extension,int force)
|
|||||||
strcat(filename,extension);
|
strcat(filename,extension);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *option_value(const char *optptr,char **argv,int argc,int *arg)
|
static const char *option_value(const char *optptr)
|
||||||
{
|
{
|
||||||
const char *ptr;
|
return (*(optptr+1)=='=' || *(optptr+1)==':') ? optptr+2 : optptr+1;
|
||||||
|
|
||||||
if (*(optptr+1)=='=' || *(optptr+1)==':')
|
|
||||||
ptr=optptr+2;
|
|
||||||
else
|
|
||||||
ptr=optptr+1;
|
|
||||||
|
|
||||||
if (strlen(ptr)==0 && *arg!=argc-1)
|
|
||||||
ptr=argv[++*arg];
|
|
||||||
|
|
||||||
return ptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int toggle_option(const char *optptr, int option)
|
static int toggle_option(const char *optptr, int option)
|
||||||
{
|
{
|
||||||
switch ((*(optptr+1)=='=' || *(optptr+1)==':') ? *(optptr+2) : *(optptr+1)) {
|
switch (*option_value(optptr)) {
|
||||||
|
case '\0':
|
||||||
|
option=!option;
|
||||||
|
break;
|
||||||
case '-':
|
case '-':
|
||||||
option=FALSE;
|
option=FALSE;
|
||||||
break;
|
break;
|
||||||
@ -860,7 +854,7 @@ static void parseoptions(int argc,char **argv,char *oname,char *ename,char *pnam
|
|||||||
ptr=&argv[arg][1];
|
ptr=&argv[arg][1];
|
||||||
switch (*ptr) {
|
switch (*ptr) {
|
||||||
case 'A':
|
case 'A':
|
||||||
i=atoi(option_value(ptr,argv,argc,&arg));
|
i=atoi(option_value(ptr));
|
||||||
if ((i % sizeof(cell))==0)
|
if ((i % sizeof(cell))==0)
|
||||||
sc_dataalign=i;
|
sc_dataalign=i;
|
||||||
else
|
else
|
||||||
@ -883,11 +877,11 @@ static void parseoptions(int argc,char **argv,char *oname,char *ename,char *pnam
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case 'c':
|
case 'c':
|
||||||
strlcpy(codepage,option_value(ptr,argv,argc,&arg),MAXCODEPAGE); /* set name of codepage */
|
strlcpy(codepage,option_value(ptr),MAXCODEPAGE); /* set name of codepage */
|
||||||
break;
|
break;
|
||||||
#if defined dos_setdrive
|
#if defined dos_setdrive
|
||||||
case 'D': /* set active directory */
|
case 'D': /* set active directory */
|
||||||
ptr=option_value(ptr,argv,argc,&arg);
|
ptr=option_value(ptr);
|
||||||
if (ptr[1]==':')
|
if (ptr[1]==':')
|
||||||
dos_setdrive(toupper(*ptr)-'A'+1); /* set active drive */
|
dos_setdrive(toupper(*ptr)-'A'+1); /* set active drive */
|
||||||
chdir(ptr);
|
chdir(ptr);
|
||||||
@ -895,7 +889,7 @@ static void parseoptions(int argc,char **argv,char *oname,char *ename,char *pnam
|
|||||||
#endif
|
#endif
|
||||||
#if 0 /* not allowed to change for SourceMod */
|
#if 0 /* not allowed to change for SourceMod */
|
||||||
case 'd':
|
case 'd':
|
||||||
switch (*option_value(ptr,argv,argc,&arg)) {
|
switch (*option_value(ptr)) {
|
||||||
case '0':
|
case '0':
|
||||||
sc_debug=0;
|
sc_debug=0;
|
||||||
break;
|
break;
|
||||||
@ -916,17 +910,17 @@ static void parseoptions(int argc,char **argv,char *oname,char *ename,char *pnam
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case 'e':
|
case 'e':
|
||||||
strlcpy(ename,option_value(ptr,argv,argc,&arg),_MAX_PATH); /* set name of error file */
|
strlcpy(ename,option_value(ptr),_MAX_PATH); /* set name of error file */
|
||||||
break;
|
break;
|
||||||
#if defined __WIN32__ || defined _WIN32 || defined _Windows
|
#if defined __WIN32__ || defined _WIN32 || defined _Windows
|
||||||
case 'H':
|
case 'H':
|
||||||
hwndFinish=(HWND)atoi(option_value(ptr,argv,argc,&arg));
|
hwndFinish=(HWND)atoi(option_value(ptr));
|
||||||
if (!IsWindow(hwndFinish))
|
if (!IsWindow(hwndFinish))
|
||||||
hwndFinish=(HWND)0;
|
hwndFinish=(HWND)0;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case 'i':
|
case 'i':
|
||||||
strlcpy(str,option_value(ptr,argv,argc,&arg),sizeof str); /* set name of include directory */
|
strlcpy(str,option_value(ptr),sizeof str); /* set name of include directory */
|
||||||
i=strlen(str);
|
i=strlen(str);
|
||||||
if (i>0) {
|
if (i>0) {
|
||||||
if (str[i-1]!=DIRSEP_CHAR) {
|
if (str[i-1]!=DIRSEP_CHAR) {
|
||||||
@ -942,21 +936,20 @@ static void parseoptions(int argc,char **argv,char *oname,char *ename,char *pnam
|
|||||||
sc_listing=TRUE; /* skip second pass & code generation */
|
sc_listing=TRUE; /* skip second pass & code generation */
|
||||||
break;
|
break;
|
||||||
case 'o':
|
case 'o':
|
||||||
strlcpy(oname,option_value(ptr,argv,argc,&arg),_MAX_PATH); /* set name of (binary) output file */
|
strlcpy(oname,option_value(ptr),_MAX_PATH); /* set name of (binary) output file */
|
||||||
break;
|
break;
|
||||||
case 'O':
|
case 'O':
|
||||||
pc_optimize=*option_value(ptr,argv,argc,&arg) - '0';
|
pc_optimize=*option_value(ptr) - '0';
|
||||||
if (pc_optimize<sOPTIMIZE_NONE || pc_optimize>=sOPTIMIZE_NUMBER || pc_optimize==sOPTIMIZE_NOMACRO)
|
if (pc_optimize<sOPTIMIZE_NONE || pc_optimize>=sOPTIMIZE_NUMBER || pc_optimize==sOPTIMIZE_NOMACRO)
|
||||||
about();
|
about();
|
||||||
break;
|
break;
|
||||||
case 'p':
|
case 'p':
|
||||||
strlcpy(pname,option_value(ptr,argv,argc,&arg),_MAX_PATH); /* set name of implicit include file */
|
strlcpy(pname,option_value(ptr),_MAX_PATH); /* set name of implicit include file */
|
||||||
break;
|
break;
|
||||||
#if !defined SC_LIGHT
|
#if !defined SC_LIGHT
|
||||||
case 'r':
|
case 'r':
|
||||||
strlcpy(rname,option_value(ptr,argv,argc,&arg),_MAX_PATH); /* set name of report file */
|
strlcpy(rname,option_value(ptr),_MAX_PATH); /* set name of report file */
|
||||||
sc_makereport=TRUE;
|
sc_makereport=TRUE;
|
||||||
#if 0 /* dead code due to option_value change to allow spaces between option and value */
|
|
||||||
if (strlen(rname)>0) {
|
if (strlen(rname)>0) {
|
||||||
set_extension(rname,".xml",FALSE);
|
set_extension(rname,".xml",FALSE);
|
||||||
} else if ((name=get_sourcefile(0))!=NULL) {
|
} else if ((name=get_sourcefile(0))!=NULL) {
|
||||||
@ -970,29 +963,28 @@ static void parseoptions(int argc,char **argv,char *oname,char *ename,char *pnam
|
|||||||
strcpy(rname,ptr);
|
strcpy(rname,ptr);
|
||||||
set_extension(rname,".xml",TRUE);
|
set_extension(rname,".xml",TRUE);
|
||||||
} /* if */
|
} /* if */
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case 'S':
|
case 'S':
|
||||||
i=atoi(option_value(ptr,argv,argc,&arg));
|
i=atoi(option_value(ptr));
|
||||||
if (i>32)
|
if (i>32)
|
||||||
pc_stksize=(cell)i; /* stack size has minimum size */
|
pc_stksize=(cell)i; /* stack size has minimum size */
|
||||||
else
|
else
|
||||||
about();
|
about();
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
skipinput=atoi(option_value(ptr,argv,argc,&arg));
|
skipinput=atoi(option_value(ptr));
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
sc_tabsize=atoi(option_value(ptr,argv,argc,&arg));
|
sc_tabsize=atoi(option_value(ptr));
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
verbosity= isdigit(*option_value(ptr,argv,argc,&arg)) ? atoi(option_value(ptr,argv,argc,&arg)) : 2;
|
verbosity= isdigit(*option_value(ptr)) ? atoi(option_value(ptr)) : 2;
|
||||||
if (sc_asmfile && verbosity>1)
|
if (sc_asmfile && verbosity>1)
|
||||||
verbosity=1;
|
verbosity=1;
|
||||||
break;
|
break;
|
||||||
case 'w':
|
case 'w':
|
||||||
i=(int)strtol(option_value(ptr,argv,argc,&arg),(char **)&ptr,10);
|
i=(int)strtol(option_value(ptr),(char **)&ptr,10);
|
||||||
if (*ptr=='-')
|
if (*ptr=='-')
|
||||||
pc_enablewarning(i,0);
|
pc_enablewarning(i,0);
|
||||||
else if (*ptr=='+')
|
else if (*ptr=='+')
|
||||||
@ -1002,13 +994,13 @@ static void parseoptions(int argc,char **argv,char *oname,char *ename,char *pnam
|
|||||||
break;
|
break;
|
||||||
case 'X':
|
case 'X':
|
||||||
if (*(ptr+1)=='D') {
|
if (*(ptr+1)=='D') {
|
||||||
i=atoi(option_value(ptr+1,argv,argc,&arg));
|
i=atoi(option_value(ptr+1));
|
||||||
if (i>64)
|
if (i>64)
|
||||||
pc_amxram=(cell)i; /* abstract machine data/stack has minimum size */
|
pc_amxram=(cell)i; /* abstract machine data/stack has minimum size */
|
||||||
else
|
else
|
||||||
about();
|
about();
|
||||||
} else {
|
} else {
|
||||||
i=atoi(option_value(ptr,argv,argc,&arg));
|
i=atoi(option_value(ptr));
|
||||||
if (i>64)
|
if (i>64)
|
||||||
pc_amxlimit=(cell)i;/* abstract machine has minimum size */
|
pc_amxlimit=(cell)i;/* abstract machine has minimum size */
|
||||||
else
|
else
|
||||||
@ -1235,8 +1227,8 @@ static void setconfig(char *root)
|
|||||||
|
|
||||||
static void setcaption(void)
|
static void setcaption(void)
|
||||||
{
|
{
|
||||||
pc_printf("SourcePawn Compiler " SVN_FULL_VERSION "\n");
|
pc_printf("SourcePawn Compiler " SM_FULL_VERSION "\n");
|
||||||
pc_printf("Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2009 AlliedModders, LLC\n\n");
|
pc_printf("Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void about(void)
|
static void about(void)
|
||||||
@ -1276,7 +1268,7 @@ static void about(void)
|
|||||||
pc_printf(" 2 full optimizations\n");
|
pc_printf(" 2 full optimizations\n");
|
||||||
pc_printf(" -p<name> set name of \"prefix\" file\n");
|
pc_printf(" -p<name> set name of \"prefix\" file\n");
|
||||||
#if !defined SC_LIGHT
|
#if !defined SC_LIGHT
|
||||||
pc_printf(" -r<name> write cross reference report to console or to specified file\n");
|
pc_printf(" -r[name] write cross reference report to console or to specified file\n");
|
||||||
#endif
|
#endif
|
||||||
pc_printf(" -S<num> stack/heap size in cells (default=%d)\n",(int)pc_stksize);
|
pc_printf(" -S<num> stack/heap size in cells (default=%d)\n",(int)pc_stksize);
|
||||||
pc_printf(" -s<num> skip lines from the input file\n");
|
pc_printf(" -s<num> skip lines from the input file\n");
|
||||||
@ -1287,7 +1279,7 @@ static void about(void)
|
|||||||
pc_printf(" -XD<num> abstract machine data/stack size limit in bytes\n");
|
pc_printf(" -XD<num> abstract machine data/stack size limit in bytes\n");
|
||||||
pc_printf(" -\\ use '\\' for escape characters\n");
|
pc_printf(" -\\ use '\\' for escape characters\n");
|
||||||
pc_printf(" -^ use '^' for escape characters\n");
|
pc_printf(" -^ use '^' for escape characters\n");
|
||||||
pc_printf(" -;<+/-> require a semicolon to end each statement (default=%c)\n", sc_needsemicolon ? '+' : '-');
|
pc_printf(" -;[+/-] require a semicolon to end each statement (default=%c)\n", sc_needsemicolon ? '+' : '-');
|
||||||
#if 0 /* not allowed in SourceMod */
|
#if 0 /* not allowed in SourceMod */
|
||||||
pc_printf(" -([+/-] require parantheses for function invocation (default=%c)\n", optproccall ? '-' : '+');
|
pc_printf(" -([+/-] require parantheses for function invocation (default=%c)\n", optproccall ? '-' : '+');
|
||||||
#endif
|
#endif
|
||||||
@ -1298,8 +1290,8 @@ static void about(void)
|
|||||||
pc_printf("equivalent.\n");
|
pc_printf("equivalent.\n");
|
||||||
#endif
|
#endif
|
||||||
pc_printf("\nOptions with a value may optionally separate the value from the option letter\n");
|
pc_printf("\nOptions with a value may optionally separate the value from the option letter\n");
|
||||||
pc_printf("with a colon (\":\"), an equal sign (\"=\"), or a space (\" \"). That is, the options \"-d0\", \"-d=0\",\n");
|
pc_printf("with a colon (\":\") or an equal sign (\"=\"). That is, the options \"-d0\", \"-d=0\"\n");
|
||||||
pc_printf("\"-d:0\", and \"-d 0\" are all equivalent. \"-;\" is an exception to this and cannot use a space.\n");
|
pc_printf("and \"-d:0\" are all equivalent.\n");
|
||||||
} /* if */
|
} /* if */
|
||||||
norun = 1;
|
norun = 1;
|
||||||
longjmp(errbuf,3); /* user abort */
|
longjmp(errbuf,3); /* user abort */
|
||||||
|
@ -58,6 +58,13 @@ static short skiplevel; /* level at which we started skipping (including nested
|
|||||||
static unsigned char term_expr[] = "";
|
static unsigned char term_expr[] = "";
|
||||||
static int listline=-1; /* "current line" for the list file */
|
static int listline=-1; /* "current line" for the list file */
|
||||||
|
|
||||||
|
#if defined __GNUC__
|
||||||
|
static double pow10(double d)
|
||||||
|
{
|
||||||
|
return pow(10, d);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* pushstk & popstk
|
/* pushstk & popstk
|
||||||
*
|
*
|
||||||
@ -602,26 +609,6 @@ static int htoi(cell *val,const unsigned char *curptr)
|
|||||||
return (int)(ptr-curptr);
|
return (int)(ptr-curptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined __GNUC__
|
|
||||||
static double pow10(int value)
|
|
||||||
{
|
|
||||||
double res=1.0;
|
|
||||||
while (value>=4) {
|
|
||||||
res*=10000.0;
|
|
||||||
value-=5;
|
|
||||||
} /* while */
|
|
||||||
while (value>=2) {
|
|
||||||
res*=100.0;
|
|
||||||
value-=2;
|
|
||||||
} /* while */
|
|
||||||
while (value>=1) {
|
|
||||||
res*=10.0;
|
|
||||||
value-=1;
|
|
||||||
} /* while */
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ftoi
|
/* ftoi
|
||||||
*
|
*
|
||||||
* Attempts to interpret a numeric symbol as a rational number, either as
|
* Attempts to interpret a numeric symbol as a rational number, either as
|
||||||
@ -954,7 +941,7 @@ static int command(void)
|
|||||||
if (skiplevel==iflevel)
|
if (skiplevel==iflevel)
|
||||||
preproc_expr(&val,NULL); /* get, but ignore the expression */
|
preproc_expr(&val,NULL); /* get, but ignore the expression */
|
||||||
else
|
else
|
||||||
lptr=strchr(lptr,'\0');
|
lptr=(unsigned char*)strchr((char*)lptr,'\0');
|
||||||
} /* if */
|
} /* if */
|
||||||
} else {
|
} else {
|
||||||
/* previous conditions were all FALSE */
|
/* previous conditions were all FALSE */
|
||||||
@ -965,7 +952,7 @@ static int command(void)
|
|||||||
if (skiplevel==iflevel) {
|
if (skiplevel==iflevel) {
|
||||||
preproc_expr(&val,NULL); /* get value (or 0 on error) */
|
preproc_expr(&val,NULL); /* get value (or 0 on error) */
|
||||||
} else {
|
} else {
|
||||||
lptr=strchr(lptr,'\0');
|
lptr=(unsigned char*)strchr((char*)lptr,'\0');
|
||||||
val=0;
|
val=0;
|
||||||
} /* if */
|
} /* if */
|
||||||
ifstack[iflevel-1]=(char)(val ? PARSEMODE : SKIPMODE);
|
ifstack[iflevel-1]=(char)(val ? PARSEMODE : SKIPMODE);
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
#include "getch.h"
|
#include "getch.h"
|
||||||
|
|
||||||
#define stricmp(a,b) strcasecmp(a,b)
|
|
||||||
#define strnicmp(a,b,c) strncasecmp(a,b,c)
|
#define strnicmp(a,b,c) strncasecmp(a,b,c)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* ===============================================================
|
|
||||||
* SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* ===============================================================
|
|
||||||
*
|
|
||||||
* This file is not open source and may not be copied without explicit
|
|
||||||
* written permission of AlliedModders LLC. This file may not be redistributed
|
|
||||||
* in whole or significant part.
|
|
||||||
* For information, see LICENSE.txt or http://www.sourcemod.net/license.php
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SOURCEMOD_VERSION_H_
|
|
||||||
#define _INCLUDE_SOURCEMOD_VERSION_H_
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file Contains SourceMod version information.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SOURCEMOD_VERSION_H_
|
|
@ -1,27 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* ===============================================================
|
|
||||||
* SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* ===============================================================
|
|
||||||
*
|
|
||||||
* This file is not open source and may not be copied without explicit
|
|
||||||
* written permission of AlliedModders LLC. This file may not be redistributed
|
|
||||||
* in whole or significant part.
|
|
||||||
* For information, see LICENSE.txt or http://www.sourcemod.net/license.php
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_SOURCEMOD_VERSION_H_
|
|
||||||
#define _INCLUDE_SOURCEMOD_VERSION_H_
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file Contains SourceMod version information.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "$BUILD_STRING$"
|
|
||||||
#define SM_BUILD_UNIQUEID "$BUILD_ID$" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SOURCEMOD_VERSION_H_
|
|
@ -19,6 +19,7 @@
|
|||||||
one thread to use crc32().
|
one thread to use crc32().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#ifdef MAKECRCH
|
#ifdef MAKECRCH
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
# ifndef DYNAMIC_CRC_TABLE
|
# ifndef DYNAMIC_CRC_TABLE
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
|
|
||||||
/* @(#) $Id$ */
|
/* @(#) $Id$ */
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include "deflate.h"
|
#include "deflate.h"
|
||||||
|
|
||||||
const char deflate_copyright[] =
|
const char deflate_copyright[] =
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
inflate_fast() can be used with either inflate.c or infback.c.
|
inflate_fast() can be used with either inflate.c or infback.c.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include "zutil.h"
|
#include "zutil.h"
|
||||||
#include "inftrees.h"
|
#include "inftrees.h"
|
||||||
#include "inflate.h"
|
#include "inflate.h"
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
* For conditions of distribution and use, see copyright notice in zlib.h
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include "zutil.h"
|
#include "zutil.h"
|
||||||
#include "inftrees.h"
|
#include "inftrees.h"
|
||||||
#include "inflate.h"
|
#include "inflate.h"
|
||||||
|
@ -80,6 +80,7 @@
|
|||||||
* The history for versions after 1.2.0 are in ChangeLog in zlib distribution.
|
* The history for versions after 1.2.0 are in ChangeLog in zlib distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include "zutil.h"
|
#include "zutil.h"
|
||||||
#include "inftrees.h"
|
#include "inftrees.h"
|
||||||
#include "inflate.h"
|
#include "inflate.h"
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
* For conditions of distribution and use, see copyright notice in zlib.h
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include "zutil.h"
|
#include "zutil.h"
|
||||||
#include "inftrees.h"
|
#include "inftrees.h"
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
/* #define GEN_TREES_H */
|
/* #define GEN_TREES_H */
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include "deflate.h"
|
#include "deflate.h"
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
/* @(#) $Id$ */
|
/* @(#) $Id$ */
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include "zutil.h"
|
#include "zutil.h"
|
||||||
|
|
||||||
#ifndef NO_DUMMY_DECL
|
#ifndef NO_DUMMY_DECL
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
#include <sourcemod_version.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "engine2.h"
|
#include "engine2.h"
|
||||||
#include "x86/jit_x86.h"
|
#include "x86/jit_x86.h"
|
||||||
#include "jit_version.h"
|
|
||||||
#include "zlib/zlib.h"
|
#include "zlib/zlib.h"
|
||||||
#include "BaseRuntime.h"
|
#include "BaseRuntime.h"
|
||||||
#include "sp_vm_engine.h"
|
#include "sp_vm_engine.h"
|
||||||
@ -149,7 +149,7 @@ const char *SourcePawnEngine2::GetEngineName()
|
|||||||
|
|
||||||
const char *SourcePawnEngine2::GetVersionString()
|
const char *SourcePawnEngine2::GetVersionString()
|
||||||
{
|
{
|
||||||
return SVN_FULL_VERSION;
|
return SM_FULL_VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
IProfiler *SourcePawnEngine2::GetProfiler()
|
IProfiler *SourcePawnEngine2::GetProfiler()
|
||||||
|
@ -1,40 +0,0 @@
|
|||||||
/**
|
|
||||||
* vim: set ts=4 :
|
|
||||||
* =============================================================================
|
|
||||||
* SourceMod
|
|
||||||
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
|
|
||||||
* =============================================================================
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License, version 3.0, as published by the
|
|
||||||
* Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along with
|
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* As a special exception, AlliedModders LLC gives you permission to link the
|
|
||||||
* code of this program (as well as its derivative works) to "Half-Life 2," the
|
|
||||||
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
|
|
||||||
* by the Valve Corporation. You must obey the GNU General Public License in
|
|
||||||
* all respects for all other code used. Additionally, AlliedModders LLC grants
|
|
||||||
* this exception to all derivative works. AlliedModders LLC defines further
|
|
||||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
|
||||||
* or <http://www.sourcemod.net/license.php>.
|
|
||||||
*
|
|
||||||
* Version: $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _INCLUDE_JIT_VERSION_H_
|
|
||||||
#define _INCLUDE_JIT_VERSION_H_
|
|
||||||
|
|
||||||
#define SM_BUILD_STRING "-dev"
|
|
||||||
#define SM_BUILD_UNIQUEID "2650:5d34bc3edbfa" SM_BUILD_STRING
|
|
||||||
#define SVN_FULL_VERSION "1.3.0" SM_BUILD_STRING
|
|
||||||
#define SVN_FILE_VERSION 1,3,0,0
|
|
||||||
|
|
||||||
#endif //_INCLUDE_JIT_VERSION_H_
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user