fixed an overall deficiency where libraries did not include extensions. extensions can now mark themselves as libraries, and they thus become fully optional just as plugins do. additionally, a bug was fixed where plugins could be accidentally marked as required instead of optional. these changes resulted in a bcompat API bump to the extension/sharesys interface.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401578
This commit is contained in:
@@ -117,7 +117,7 @@ namespace SourceMod
|
||||
/**
|
||||
* @brief Version code of the IExtensionInterface API itself.
|
||||
*/
|
||||
#define SMINTERFACE_EXTENSIONAPI_VERSION 1
|
||||
#define SMINTERFACE_EXTENSIONAPI_VERSION 2
|
||||
|
||||
/**
|
||||
* @brief The interface an extension must expose.
|
||||
|
||||
@@ -192,6 +192,14 @@ namespace SourceMod
|
||||
* @param autoload Whether or not to autoload this extension.
|
||||
*/
|
||||
virtual void AddDependency(IExtension *myself, const char *filename, bool require, bool autoload) =0;
|
||||
|
||||
/**
|
||||
* @brief Registers a library name to an extension.
|
||||
*
|
||||
* @param myself Extension to register library to.
|
||||
* @param name Library name.
|
||||
*/
|
||||
virtual void RegisterLibrary(IExtension *myself, const char *name) =0;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user