mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-21 23:37:44 +01:00
fix: make HookManager.TrackedHooks thread-safe, might fix invalid CLR state
This commit is contained in:
parent
af4a25c74b
commit
0e95424704
4 changed files with 16 additions and 6 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
|
|
@ -28,7 +29,7 @@ namespace Dalamud.Hooking.Internal
|
|||
/// <summary>
|
||||
/// Gets a static list of tracked and registered hooks.
|
||||
/// </summary>
|
||||
internal static List<HookInfo> TrackedHooks { get; } = new();
|
||||
internal static ConcurrentDictionary<Guid, HookInfo> TrackedHooks { get; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Gets a static dictionary of original code for a hooked address.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue