Revert "Add HookPluginUnload() and UnhookPluginUnload() functions"
This reverts commit 2c2d219f3f07d31ba84aa88acfae353c82e75dec.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user