Revert "Add HookPluginUnload() and UnhookPluginUnload() functions"

This reverts commit 2c2d219f3f07d31ba84aa88acfae353c82e75dec.
This commit is contained in:
Vladimir
2021-05-24 14:30:16 -07:00
committed by David Anderson
parent 6b9037790a
commit ff43e60831
5 changed files with 0 additions and 152 deletions
-27
View File
@@ -84,13 +84,6 @@ enum APLRes
APLRes_SilentFailure /**< Plugin shouldn't load but do so silently */
};
/**
* Called when a plugin unloaded.
*
* @param plugin Plugin Handle who unloaded.
*/
typedef PluginUnloaded = function void (Handle plugin);
methodmap GameData < Handle
{
// Loads a game config file.
@@ -326,26 +319,6 @@ native bool GetPluginInfo(Handle plugin, PluginInfo info, char[] buffer, int max
*/
native Handle FindPluginByNumber(int order_num);
/**
* Creates a hook for when a plugin unloaded.
*
* @param plugin Plugin Handle to hook.
* @param callback An PluginUnloaded function pointer.
*
* @return True on success, false otherwise.
*/
native bool HookPluginUnload(Handle plugin, PluginUnloaded callback);
/**
* Removes a hook for when a plugin unloaded.
*
* @param plugin Plugin Handle to hook.
* @param callback An PluginUnloaded function pointer.
*
* @return True on success, false otherwise.
*/
native bool UnhookPluginUnload(Handle plugin, PluginUnloaded callback);
/**
* Causes the plugin to enter a failed state. An error will be thrown and
* the plugin will be paused until it is unloaded or reloaded.