Fixed SDKHooks missing version info.
This commit is contained in:
parent
74aafaa72f
commit
176c003658
@ -30,6 +30,7 @@
|
||||
* Version: $Id$
|
||||
*/
|
||||
|
||||
#include <sourcemod_version.h>
|
||||
#include "extension.h"
|
||||
#include "compat_wrappers.h"
|
||||
#include "macros.h"
|
||||
@ -347,6 +348,16 @@ bool SDKHooks::SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlen, bool
|
||||
return true;
|
||||
}
|
||||
|
||||
const char *SDKHooks::GetExtensionVerString()
|
||||
{
|
||||
return SM_VERSION_STRING;
|
||||
}
|
||||
|
||||
const char *SDKHooks::GetExtensionDateString()
|
||||
{
|
||||
return SM_BUILD_TIMESTAMP;
|
||||
}
|
||||
|
||||
void SDKHooks::OnPluginLoaded(IPlugin *plugin)
|
||||
{
|
||||
if (g_pOnLevelInit->GetFunctionCount() > 0 && g_hookOnLevelInit == 0)
|
||||
|
@ -157,6 +157,13 @@ public:
|
||||
* @return True if working, false otherwise.
|
||||
*/
|
||||
//virtual bool QueryRunning(char *error, size_t maxlength);
|
||||
|
||||
/** Returns version string */
|
||||
virtual const char *GetExtensionVerString();
|
||||
|
||||
/** Returns date string */
|
||||
virtual const char *GetExtensionDateString();
|
||||
|
||||
public:
|
||||
#if defined SMEXT_CONF_METAMOD
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user