Fixed SDKHooks missing version info.

This commit is contained in:
Peace-Maker 2013-02-09 11:37:51 -05:00
parent 74aafaa72f
commit 176c003658
2 changed files with 18 additions and 0 deletions

View File

@ -30,6 +30,7 @@
* Version: $Id$ * Version: $Id$
*/ */
#include <sourcemod_version.h>
#include "extension.h" #include "extension.h"
#include "compat_wrappers.h" #include "compat_wrappers.h"
#include "macros.h" #include "macros.h"
@ -347,6 +348,16 @@ bool SDKHooks::SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlen, bool
return true; return true;
} }
const char *SDKHooks::GetExtensionVerString()
{
return SM_VERSION_STRING;
}
const char *SDKHooks::GetExtensionDateString()
{
return SM_BUILD_TIMESTAMP;
}
void SDKHooks::OnPluginLoaded(IPlugin *plugin) void SDKHooks::OnPluginLoaded(IPlugin *plugin)
{ {
if (g_pOnLevelInit->GetFunctionCount() > 0 && g_hookOnLevelInit == 0) if (g_pOnLevelInit->GetFunctionCount() > 0 && g_hookOnLevelInit == 0)

View File

@ -157,6 +157,13 @@ 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);
/** Returns version string */
virtual const char *GetExtensionVerString();
/** Returns date string */
virtual const char *GetExtensionDateString();
public: public:
#if defined SMEXT_CONF_METAMOD #if defined SMEXT_CONF_METAMOD
/** /**