Fixed SDKHooks missing version info.
This commit is contained in:
		
							parent
							
								
									74aafaa72f
								
							
						
					
					
						commit
						176c003658
					
				@ -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)
 | 
				
			||||||
 | 
				
			|||||||
@ -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
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user