mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 21:03:43 +01:00
fix warnings in Dalamud
This commit is contained in:
parent
b9101a55e8
commit
166301f56f
24 changed files with 124 additions and 98 deletions
|
|
@ -17,7 +17,7 @@ namespace Dalamud.Hooking.Internal;
|
|||
internal class HookManager : IDisposable, IServiceType
|
||||
{
|
||||
/// <summary>
|
||||
/// Logger shared with <see cref="Unhooker"/>
|
||||
/// Logger shared with <see cref="Unhooker"/>.
|
||||
/// </summary>
|
||||
internal static readonly ModuleLog Log = new("HM");
|
||||
|
||||
|
|
@ -41,6 +41,11 @@ internal class HookManager : IDisposable, IServiceType
|
|||
/// </summary>
|
||||
internal static ConcurrentDictionary<IntPtr, Unhooker> Unhookers { get; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Gets a static dictionary of the number of hooks on a given address.
|
||||
/// </summary>
|
||||
internal static ConcurrentDictionary<IntPtr, List<IDalamudHook?>> MultiHookTracker { get; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new Unhooker instance for the provided address if no such unhooker was already registered, or returns
|
||||
/// an existing instance if the address was registered previously. By default, the unhooker will restore between 0
|
||||
|
|
@ -68,11 +73,6 @@ internal class HookManager : IDisposable, IServiceType
|
|||
return Unhookers.GetOrAdd(address, _ => new Unhooker(address, minBytes, maxBytes));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a static dictionary of the number of hooks on a given address.
|
||||
/// </summary>
|
||||
internal static ConcurrentDictionary<IntPtr, List<IDalamudHook?>> MultiHookTracker { get; } = new();
|
||||
|
||||
/// <inheritdoc/>
|
||||
public void Dispose()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue