Fixed extension version reporting.
This commit is contained in:
parent
7ffcc176cd
commit
0a060982e3
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
/**
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -84,8 +84,8 @@ public:
|
||||
|
||||
virtual void NotifyInterfaceDrop(SMInterface *pInterface);
|
||||
|
||||
const char *GetVersion();
|
||||
const char *GetDate();
|
||||
const char *GetExtensionVerString();
|
||||
const char *GetExtensionDateString();
|
||||
|
||||
void DatabaseConnect();
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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:
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
/**
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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_
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user