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:
David Anderson
2007-10-15 04:06:57 +00:00
parent 8eaf03c441
commit c803eb8328
13 changed files with 147 additions and 35 deletions
+1 -1
View File
@@ -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.
+8
View File
@@ -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;
};
}