Fixed SDKHooks missing version info.
authorPeace-Maker <januk@freenet.de>
Sat Feb 09 11:37:51 2013 -0500 (2013-02-09)
changeset 37745f34f4ed1a4f
parent 3773 78db16ac10e5
child 3775 d15cac5ee556
Fixed SDKHooks missing version info.
extensions/sdkhooks/extension.cpp
extensions/sdkhooks/extension.h
     1.1 --- a/extensions/sdkhooks/extension.cpp	Fri Feb 08 22:46:49 2013 -0500
     1.2 +++ b/extensions/sdkhooks/extension.cpp	Sat Feb 09 11:37:51 2013 -0500
     1.3 @@ -30,6 +30,7 @@
     1.4   * Version: $Id$
     1.5   */
     1.6  
     1.7 +#include <sourcemod_version.h>
     1.8  #include "extension.h"
     1.9  #include "compat_wrappers.h"
    1.10  #include "macros.h"
    1.11 @@ -347,6 +348,16 @@
    1.12  	return true;
    1.13  }
    1.14  
    1.15 +const char *SDKHooks::GetExtensionVerString()
    1.16 +{
    1.17 +	return SM_VERSION_STRING;
    1.18 +}
    1.19 +
    1.20 +const char *SDKHooks::GetExtensionDateString()
    1.21 +{
    1.22 +	return SM_BUILD_TIMESTAMP;
    1.23 +}
    1.24 +
    1.25  void SDKHooks::OnPluginLoaded(IPlugin *plugin)
    1.26  {
    1.27  	if (g_pOnLevelInit->GetFunctionCount() > 0 && g_hookOnLevelInit == 0)
     2.1 --- a/extensions/sdkhooks/extension.h	Fri Feb 08 22:46:49 2013 -0500
     2.2 +++ b/extensions/sdkhooks/extension.h	Sat Feb 09 11:37:51 2013 -0500
     2.3 @@ -157,6 +157,13 @@
     2.4  	 * @return			True if working, false otherwise.
     2.5  	 */
     2.6  	//virtual bool QueryRunning(char *error, size_t maxlength);
     2.7 +
     2.8 +	/** Returns version string */
     2.9 +	virtual const char *GetExtensionVerString();
    2.10 +
    2.11 +	/** Returns date string */
    2.12 +	virtual const char *GetExtensionDateString();
    2.13 +
    2.14  public:
    2.15  #if defined SMEXT_CONF_METAMOD
    2.16  	/**