- added callbacks for libraries becoming available

- fixed MarkNTVOptional requring native to exist
- fixed a bug where it looks like plugins could not be paused

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401130
This commit is contained in:
David Anderson
2007-07-16 02:06:02 +00:00
parent 399fb8a8e8
commit 4ce48512b1
4 changed files with 161 additions and 7 deletions
+24
View File
@@ -348,5 +348,29 @@ native MarkNativeAsOptional(const String:name[]);
*/
native RegPluginLibrary(const String:name[]);
/**
* Returns whether a library exists.
*
* @param name Library name.
* @return True if exists, false otherwise.
*/
native bool:LibraryExists(const String:name[]);
/**
* Called after a library (plugin) is added that the
* current plugin references optionally.
*
* @param name Library name.
*/
forward OnLibraryAdded(const String:name[]);
/**
* Called right before a library (plugin) is removed that the
* current plugin references optionally.
*
* @param name Library name.
*/
forward OnLibraryRemoved(const String:name[]);
#include <helpers>
#include <entity>