mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
Un-whether-or-not the codebase
This commit is contained in:
parent
f4102db488
commit
731d7e0f6e
59 changed files with 249 additions and 249 deletions
|
|
@ -20,7 +20,7 @@ public sealed class AsmHook : IDisposable, IDalamudHook
|
|||
private bool isEnabled = false;
|
||||
|
||||
private DynamicMethod statsMethod;
|
||||
|
||||
|
||||
private Guid hookId = Guid.NewGuid();
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -89,7 +89,7 @@ public sealed class AsmHook : IDisposable, IDalamudHook
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether or not the hook is enabled.
|
||||
/// Gets a value indicating whether the hook is enabled.
|
||||
/// </summary>
|
||||
public bool IsEnabled
|
||||
{
|
||||
|
|
@ -101,7 +101,7 @@ public sealed class AsmHook : IDisposable, IDalamudHook
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether or not the hook has been disposed.
|
||||
/// Gets a value indicating whether the hook has been disposed.
|
||||
/// </summary>
|
||||
public bool IsDisposed { get; private set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -59,23 +59,23 @@ public abstract class Hook<T> : IDalamudHook where T : Delegate
|
|||
=> this.IsDisposed ? Marshal.GetDelegateForFunctionPointer<T>(this.address) : this.Original;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether or not the hook is enabled.
|
||||
/// Gets a value indicating whether the hook is enabled.
|
||||
/// </summary>
|
||||
public virtual bool IsEnabled => throw new NotImplementedException();
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether or not the hook has been disposed.
|
||||
/// Gets a value indicating whether the hook has been disposed.
|
||||
/// </summary>
|
||||
public bool IsDisposed { get; private set; }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public virtual string BackendName => throw new NotImplementedException();
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets the unique GUID for this hook.
|
||||
/// </summary>
|
||||
protected Guid HookId { get; } = Guid.NewGuid();
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Remove a hook from the current process.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -11,12 +11,12 @@ public interface IDalamudHook : IDisposable
|
|||
public IntPtr Address { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether or not the hook is enabled.
|
||||
/// Gets a value indicating whether the hook is enabled.
|
||||
/// </summary>
|
||||
public bool IsEnabled { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether or not the hook is disposed.
|
||||
/// Gets a value indicating whether the hook is disposed.
|
||||
/// </summary>
|
||||
public bool IsDisposed { get; }
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ internal class CallHook<T> : IDalamudHook where T : Delegate
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether or not the hook is enabled.
|
||||
/// Gets a value indicating whether the hook is enabled.
|
||||
/// </summary>
|
||||
public bool IsEnabled => this.asmHook.IsEnabled;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue