Moved note about releasing resources from OnPluginStart to OnPluginEnd

This commit is contained in:
Alexander Corn 2015-03-06 15:25:39 -05:00 committed by Nicholas Hastings
parent a523948ebb
commit 3c95f191c4

View File

@ -92,10 +92,6 @@ enum APLRes
* If any run-time error is thrown during this callback, the plugin will be marked
* as failed.
*
* It is not necessary to close any handles or remove hooks in this function.
* SourceMod guarantees that plugin shutdown automatically and correctly releases
* all resources.
*
* @noreturn
*/
forward void OnPluginStart();
@ -132,6 +128,10 @@ forward APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max)
/**
* Called when the plugin is about to be unloaded.
*
* It is not necessary to close any handles or remove hooks in this function.
* SourceMod guarantees that plugin shutdown automatically and correctly releases
* all resources.
*
* @noreturn
*/
forward void OnPluginEnd();