From 176c003658319ac40a237546189bf54ce78e08f1 Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Sat, 9 Feb 2013 11:37:51 -0500 Subject: [PATCH] Fixed SDKHooks missing version info. --- extensions/sdkhooks/extension.cpp | 11 +++++++++++ extensions/sdkhooks/extension.h | 7 +++++++ 2 files changed, 18 insertions(+) diff --git a/extensions/sdkhooks/extension.cpp b/extensions/sdkhooks/extension.cpp index bb94bfd1..b76f4cfd 100644 --- a/extensions/sdkhooks/extension.cpp +++ b/extensions/sdkhooks/extension.cpp @@ -30,6 +30,7 @@ * Version: $Id$ */ +#include #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) diff --git a/extensions/sdkhooks/extension.h b/extensions/sdkhooks/extension.h index 776a371b..10b29a71 100644 --- a/extensions/sdkhooks/extension.h +++ b/extensions/sdkhooks/extension.h @@ -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 /**