diff -r c2ed9ba7f74c -r acab40e6dbd7 core-legacy/ISmmAPI.h --- a/core-legacy/ISmmAPI.h Thu Oct 29 00:45:11 2009 -0700 +++ b/core-legacy/ISmmAPI.h Thu Oct 29 00:52:39 2009 -0700 @@ -303,6 +303,19 @@ * @return Message name, or NULL on failure. */ virtual const char *GetUserMessage(int index, int *size=NULL) =0; + + /** + * @brief Returns the VSP listener loaded. + * + * This is useful for late-loading plugins which need to decide whether + * to add a listener or not (or need to get the pointer at all). + * + * @param pVersion Optional pointer to store the VSP version. + * @return IServerPluginCallbacks pointer, or NULL if an + * IMetamodListener event has yet to occur for + * EnableVSPListener(). + */ + virtual IServerPluginCallbacks *GetVSPInfo(int *pVersion) =0; }; @@ -315,7 +328,7 @@ * 1.2.2 Added API for printing to client console (with string formatting). * 1.3 Added new interface search API. * 1.4 Added VSP listener and user message API. - * 1.8 Added VP hooks to SH-legacy, new API for cvars. + * 1.8 Backported SH VP hooks and various "new API" calls. */ #endif //_INCLUDE_ISMM_API_H