/* User Functionality */ /// <summary> /// Performs a one time activation of the hook. /// This function should only ever be called once. /// </summary> public IAsmHook Activate() { if (!_activated) { _activated = true; _activateHookPatch.Apply(); _enableHookPatch.ApplyUnsafe(); } return(this); }
/// <inheritdoc /> public void Enable() { if (IsHookActivated) { _enableHookPatch.ApplyUnsafe(); IsHookEnabled = true; } }
/// <inheritdoc /> public void Disable() { if (IsHookActivated) { _disableHookPatch.ApplyUnsafe(); IsHookEnabled = false; } }
public void Disable() { _disableHookPatch.ApplyUnsafe(); IsEnabled = false; }