From 0a060982e340e37cb628316f1cf65d00251413b3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 30 Aug 2009 01:54:45 -0700 Subject: [PATCH] Fixed extension version reporting. --- extensions/bintools/extension.cpp | 4 ++-- extensions/bintools/extension.h | 4 ++-- extensions/clientprefs/extension.cpp | 4 ++-- extensions/clientprefs/extension.h | 4 ++-- extensions/cstrike/extension.cpp | 4 ++-- extensions/cstrike/extension.h | 4 ++-- extensions/curl/extension.cpp | 4 ++-- extensions/curl/extension.h | 4 ++-- extensions/geoip/extension.cpp | 4 ++-- extensions/geoip/extension.h | 4 ++-- extensions/regex/extension.cpp | 4 ++-- extensions/regex/extension.h | 4 ++-- extensions/sdktools/extension.cpp | 4 ++-- extensions/sdktools/extension.h | 4 ++-- extensions/sqlite/extension.cpp | 4 ++-- extensions/sqlite/extension.h | 4 ++-- extensions/tf2/extension.cpp | 4 ++-- extensions/tf2/extension.h | 4 ++-- extensions/topmenus/extension.cpp | 4 ++-- extensions/topmenus/extension.h | 4 ++-- extensions/updater/extension.cpp | 4 ++-- extensions/updater/extension.h | 4 ++-- 22 files changed, 44 insertions(+), 44 deletions(-) diff --git a/extensions/bintools/extension.cpp b/extensions/bintools/extension.cpp index 235878a4..22e7b663 100644 --- a/extensions/bintools/extension.cpp +++ b/extensions/bintools/extension.cpp @@ -56,12 +56,12 @@ bool BinTools::SDK_OnLoad(char *error, size_t maxlength, bool late) return true; } -const char *BinTools::GetVersion() +const char *BinTools::GetExtensionVerString() { return SM_FULL_VERSION; } -const char *BinTools::GetDate() +const char *BinTools::GetExtensionDateString() { return SM_BUILD_TIMESTAMP; } diff --git a/extensions/bintools/extension.h b/extensions/bintools/extension.h index d920c94f..a4e34f33 100644 --- a/extensions/bintools/extension.h +++ b/extensions/bintools/extension.h @@ -81,8 +81,8 @@ public: * @return True if working, false otherwise. */ //virtual bool QueryRunning(char *error, size_t maxlength); - const char *GetVersion(); - const char *GetDate(); + const char *GetExtensionVerString(); + const char *GetExtensionDateString(); public: #if defined SMEXT_CONF_METAMOD /** diff --git a/extensions/clientprefs/extension.cpp b/extensions/clientprefs/extension.cpp index 688f9905..255f53f9 100644 --- a/extensions/clientprefs/extension.cpp +++ b/extensions/clientprefs/extension.cpp @@ -431,12 +431,12 @@ bool Translate(char *buffer, return true; } -const char *ClientPrefs::GetVersion() +const char *ClientPrefs::GetExtensionVerString() { return SM_FULL_VERSION; } -const char *ClientPrefs::GetDate() +const char *ClientPrefs::GetExtensionDateString() { return SM_BUILD_TIMESTAMP; } diff --git a/extensions/clientprefs/extension.h b/extensions/clientprefs/extension.h index 9bd2d178..19328ab5 100644 --- a/extensions/clientprefs/extension.h +++ b/extensions/clientprefs/extension.h @@ -84,8 +84,8 @@ public: virtual void NotifyInterfaceDrop(SMInterface *pInterface); - const char *GetVersion(); - const char *GetDate(); + const char *GetExtensionVerString(); + const char *GetExtensionDateString(); void DatabaseConnect(); diff --git a/extensions/cstrike/extension.cpp b/extensions/cstrike/extension.cpp index 8cbd5e40..549df79e 100644 --- a/extensions/cstrike/extension.cpp +++ b/extensions/cstrike/extension.cpp @@ -252,12 +252,12 @@ bool CStrike::ProcessCommandTarget(cmd_target_info_t *info) return true; } -const char *CStrike::GetVersion() +const char *CStrike::GetExtensionVerString() { return SM_FULL_VERSION; } -const char *CStrike::GetDate() +const char *CStrike::GetExtensionDateString() { return SM_BUILD_TIMESTAMP; } diff --git a/extensions/cstrike/extension.h b/extensions/cstrike/extension.h index 12c7dce0..2434ceb8 100644 --- a/extensions/cstrike/extension.h +++ b/extensions/cstrike/extension.h @@ -87,8 +87,8 @@ public: void NotifyInterfaceDrop(SMInterface *pInterface); bool QueryInterfaceDrop(SMInterface *pInterface); - const char *GetVersion(); - const char *GetDate(); + const char *GetExtensionVerString(); + const char *GetExtensionDateString(); public: bool ProcessCommandTarget(cmd_target_info_t *info); public: diff --git a/extensions/curl/extension.cpp b/extensions/curl/extension.cpp index 1f4a9c62..7baf1f51 100644 --- a/extensions/curl/extension.cpp +++ b/extensions/curl/extension.cpp @@ -76,12 +76,12 @@ void CurlExt::SDK_OnUnload() curl_global_cleanup(); } -const char *CurlExt::GetVersion() +const char *CurlExt::GetExtensionVerString() { return SM_FULL_VERSION; } -const char *CurlExt::GetDate() +const char *CurlExt::GetExtensionDateString() { return SM_BUILD_TIMESTAMP; } diff --git a/extensions/curl/extension.h b/extensions/curl/extension.h index ae7fad3c..9241961b 100644 --- a/extensions/curl/extension.h +++ b/extensions/curl/extension.h @@ -81,8 +81,8 @@ public: * @return True if working, false otherwise. */ //virtual bool QueryRunning(char *error, size_t maxlength); - const char *GetVersion(); - const char *GetDate(); + const char *GetExtensionVerString(); + const char *GetExtensionDateString(); public: #if defined SMEXT_CONF_METAMOD /** diff --git a/extensions/geoip/extension.cpp b/extensions/geoip/extension.cpp index a1b4eb1b..f9121ea8 100644 --- a/extensions/geoip/extension.cpp +++ b/extensions/geoip/extension.cpp @@ -68,12 +68,12 @@ void GeoIP_Extension::SDK_OnUnload() gi = NULL; } -const char *GeoIP_Extension::GetVersion() +const char *GeoIP_Extension::GetExtensionVerString() { return SM_FULL_VERSION; } -const char *GeoIP_Extension::GetDate() +const char *GeoIP_Extension::GetExtensionDateString() { return SM_BUILD_TIMESTAMP; } diff --git a/extensions/geoip/extension.h b/extensions/geoip/extension.h index b06b225a..c7c3f44c 100644 --- a/extensions/geoip/extension.h +++ b/extensions/geoip/extension.h @@ -62,8 +62,8 @@ public: */ virtual void SDK_OnUnload(); - const char *GetVersion(); - const char *GetDate(); + const char *GetExtensionVerString(); + const char *GetExtensionDateString(); /** * @brief This is called once all known extensions have been loaded. diff --git a/extensions/regex/extension.cpp b/extensions/regex/extension.cpp index 53c9153e..9b4de4db 100644 --- a/extensions/regex/extension.cpp +++ b/extensions/regex/extension.cpp @@ -63,12 +63,12 @@ void RegexExtension::SDK_OnUnload() } -const char *RegexExtension::GetVersion() +const char *RegexExtension::GetExtensionVerString() { return SM_FULL_VERSION; } -const char *RegexExtension::GetDate() +const char *RegexExtension::GetExtensionDateString() { return SM_BUILD_TIMESTAMP; } diff --git a/extensions/regex/extension.h b/extensions/regex/extension.h index d90498e5..330aa3d8 100644 --- a/extensions/regex/extension.h +++ b/extensions/regex/extension.h @@ -62,8 +62,8 @@ public: */ virtual void SDK_OnUnload(); - const char *GetVersion(); - const char *GetDate(); + const char *GetExtensionVerString(); + const char *GetExtensionDateString(); /** * @brief This is called once all known extensions have been loaded. diff --git a/extensions/sdktools/extension.cpp b/extensions/sdktools/extension.cpp index ba47d3f4..557e4b72 100644 --- a/extensions/sdktools/extension.cpp +++ b/extensions/sdktools/extension.cpp @@ -383,12 +383,12 @@ bool SDKTools::ProcessCommandTarget(cmd_target_info_t *info) return true; } -const char *SDKTools::GetVersion() +const char *SDKTools::GetExtensionVerString() { return SM_FULL_VERSION; } -const char *SDKTools::GetDate() +const char *SDKTools::GetExtensionDateString() { return SM_BUILD_TIMESTAMP; } diff --git a/extensions/sdktools/extension.h b/extensions/sdktools/extension.h index 20f4e850..023cec99 100644 --- a/extensions/sdktools/extension.h +++ b/extensions/sdktools/extension.h @@ -73,8 +73,8 @@ public: //public SDKExtension virtual bool QueryInterfaceDrop(SMInterface *pInterface); virtual void NotifyInterfaceDrop(SMInterface *pInterface); virtual void OnCoreMapStart(edict_t *pEdictList, int edictCount, int clientMax); - const char *GetVersion(); - const char *GetDate(); + const char *GetExtensionVerString(); + const char *GetExtensionDateString(); public: #if defined SMEXT_CONF_METAMOD virtual bool SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlen, bool late); diff --git a/extensions/sqlite/extension.cpp b/extensions/sqlite/extension.cpp index 829dc278..191e8452 100644 --- a/extensions/sqlite/extension.cpp +++ b/extensions/sqlite/extension.cpp @@ -72,12 +72,12 @@ size_t UTIL_Format(char *buffer, size_t maxlength, const char *fmt, ...) } } -const char *SqliteExt::GetVersion() +const char *SqliteExt::GetExtensionVerString() { return SM_FULL_VERSION; } -const char *SqliteExt::GetDate() +const char *SqliteExt::GetExtensionDateString() { return SM_BUILD_TIMESTAMP; } diff --git a/extensions/sqlite/extension.h b/extensions/sqlite/extension.h index 033060b6..bf5716f5 100644 --- a/extensions/sqlite/extension.h +++ b/extensions/sqlite/extension.h @@ -62,8 +62,8 @@ public: */ virtual void SDK_OnUnload(); - const char *GetVersion(); - const char *GetDate(); + const char *GetExtensionVerString(); + const char *GetExtensionDateString(); /** * @brief This is called once all known extensions have been loaded. diff --git a/extensions/tf2/extension.cpp b/extensions/tf2/extension.cpp index bf644d35..8add2636 100644 --- a/extensions/tf2/extension.cpp +++ b/extensions/tf2/extension.cpp @@ -116,12 +116,12 @@ bool TF2Tools::SDK_OnLoad(char *error, size_t maxlength, bool late) return true; } -const char *TF2Tools::GetVersion() +const char *TF2Tools::GetExtensionVerString() { return SM_FULL_VERSION; } -const char *TF2Tools::GetDate() +const char *TF2Tools::GetExtensionDateString() { return SM_BUILD_TIMESTAMP; } diff --git a/extensions/tf2/extension.h b/extensions/tf2/extension.h index 5fcf6cfe..d6878c8e 100644 --- a/extensions/tf2/extension.h +++ b/extensions/tf2/extension.h @@ -87,8 +87,8 @@ public: //SDKExtension void NotifyInterfaceDrop(SMInterface *pInterface); bool QueryInterfaceDrop(SMInterface *pInterface); - const char *GetVersion(); - const char *GetDate(); + const char *GetExtensionVerString(); + const char *GetExtensionDateString(); public: //ICommandTargetProcessor bool ProcessCommandTarget(cmd_target_info_t *info); public: //IConCommandBaseAccessor diff --git a/extensions/topmenus/extension.cpp b/extensions/topmenus/extension.cpp index 784866c5..3acae862 100644 --- a/extensions/topmenus/extension.cpp +++ b/extensions/topmenus/extension.cpp @@ -65,12 +65,12 @@ void TopMenuExtension::SDK_OnUnload() plsys->RemovePluginsListener(&g_TopMenus); } -const char *TopMenuExtension::GetVersion() +const char *TopMenuExtension::GetExtensionVerString() { return SM_FULL_VERSION; } -const char *TopMenuExtension::GetDate() +const char *TopMenuExtension::GetExtensionDateString() { return SM_BUILD_TIMESTAMP; } diff --git a/extensions/topmenus/extension.h b/extensions/topmenus/extension.h index f0ccea9e..0b849ea9 100644 --- a/extensions/topmenus/extension.h +++ b/extensions/topmenus/extension.h @@ -62,8 +62,8 @@ public: */ virtual void SDK_OnUnload(); - const char *GetVersion(); - const char *GetDate(); + const char *GetExtensionVerString(); + const char *GetExtensionDateString(); }; #endif // _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_ diff --git a/extensions/updater/extension.cpp b/extensions/updater/extension.cpp index f9258c44..52c91e36 100644 --- a/extensions/updater/extension.cpp +++ b/extensions/updater/extension.cpp @@ -247,12 +247,12 @@ void AddUpdateError(const char *fmt, ...) update_errors.push_back(new String(buffer)); } -const char *SmUpdater::GetVersion() +const char *SmUpdater::GetExtensionVerString() { return SM_FULL_VERSION; } -const char *SmUpdater::GetDate() +const char *SmUpdater::GetExtensionDateString() { return SM_BUILD_TIMESTAMP; } diff --git a/extensions/updater/extension.h b/extensions/updater/extension.h index fb772a5b..3d0be631 100644 --- a/extensions/updater/extension.h +++ b/extensions/updater/extension.h @@ -54,8 +54,8 @@ public: /* SDKExtension */ public: /* IExtension */ bool QueryInterfaceDrop(SMInterface *pInterface); void NotifyInterfaceDrop(SMInterface *pInterface); - const char *GetVersion(); - const char *GetDate(); + const char *GetExtensionVerString(); + const char *GetExtensionDateString(); public: /* IThread */ void RunThread(IThreadHandle *pHandle); void OnTerminate(IThreadHandle *pHandle, bool cancel);