Skip to content

Commit a065773

Browse files
authored
Update OnLibraryAdded and OnLibraryRemoved docs (#1303)
`OnLibraryAdded` and `OnLibraryRemoved` are called whether or not a optional dependency exists
1 parent 4e0ae0c commit a065773

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugins/include/sourcemod.inc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ native void RegPluginLibrary(const char[] name);
452452
* Returns whether a library exists. This function should be considered
453453
* expensive; it should only be called on plugin to determine availability
454454
* of resources. Use OnLibraryAdded()/OnLibraryRemoved() to detect changes
455-
* in optional resources.
455+
* in libraries.
456456
*
457457
* @param name Library name of a plugin or extension.
458458
* @return True if exists, false otherwise.
@@ -473,17 +473,17 @@ native bool LibraryExists(const char[] name);
473473
native int GetExtensionFileStatus(const char[] name, char[] error="", int maxlength=0);
474474

475475
/**
476-
* Called after a library is added that the current plugin references
477-
* optionally. A library is either a plugin name or extension name, as
476+
* Called after a library is added.
477+
* A library is either a plugin name or extension name, as
478478
* exposed via its include file.
479479
*
480480
* @param name Library name.
481481
*/
482482
forward void OnLibraryAdded(const char[] name);
483483

484484
/**
485-
* Called right before a library is removed that the current plugin references
486-
* optionally. A library is either a plugin name or extension name, as
485+
* Called right before a library is removed.
486+
* A library is either a plugin name or extension name, as
487487
* exposed via its include file.
488488
*
489489
* @param name Library name.

0 commit comments

Comments
 (0)