1.1 --- a/core-legacy/ISmmAPI.h Thu Oct 29 00:45:11 2009 -0700
1.2 +++ b/core-legacy/ISmmAPI.h Thu Oct 29 00:52:39 2009 -0700
1.3 @@ -303,6 +303,19 @@
1.4 * @return Message name, or NULL on failure.
1.5 */
1.6 virtual const char *GetUserMessage(int index, int *size=NULL) =0;
1.7 +
1.8 + /**
1.9 + * @brief Returns the VSP listener loaded.
1.10 + *
1.11 + * This is useful for late-loading plugins which need to decide whether
1.12 + * to add a listener or not (or need to get the pointer at all).
1.13 + *
1.14 + * @param pVersion Optional pointer to store the VSP version.
1.15 + * @return IServerPluginCallbacks pointer, or NULL if an
1.16 + * IMetamodListener event has yet to occur for
1.17 + * EnableVSPListener().
1.18 + */
1.19 + virtual IServerPluginCallbacks *GetVSPInfo(int *pVersion) =0;
1.20 };
1.21
1.22
1.23 @@ -315,7 +328,7 @@
1.24 * 1.2.2 Added API for printing to client console (with string formatting).
1.25 * 1.3 Added new interface search API.
1.26 * 1.4 Added VSP listener and user message API.
1.27 - * 1.8 Added VP hooks to SH-legacy, new API for cvars.
1.28 + * 1.8 Backported SH VP hooks and various "new API" calls.
1.29 */
1.30
1.31 #endif //_INCLUDE_ISMM_API_H