From 2cfb9cc70645a71537880acb79e0756e2a41ac63 Mon Sep 17 00:00:00 2001
From: goat <16760685+goaaats@users.noreply.github.com>
Date: Mon, 18 Jul 2022 18:55:56 +0200
Subject: [PATCH] deps: switch to goaaats.Reloaded.Hooks until concurrency fix
is upstreamed
https://github.com/goatcorp/goatcorp.Reloaded.Hooks/commit/7d03dac73dc0298ff85f977735d7a9e169d3ac10
---
Dalamud/Dalamud.csproj | 2 +-
Dalamud/Hooking/Internal/ReloadedHook.cs | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/Dalamud/Dalamud.csproj b/Dalamud/Dalamud.csproj
index 2dedb7f04..45676036d 100644
--- a/Dalamud/Dalamud.csproj
+++ b/Dalamud/Dalamud.csproj
@@ -74,7 +74,7 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/Dalamud/Hooking/Internal/ReloadedHook.cs b/Dalamud/Hooking/Internal/ReloadedHook.cs
index ae4425785..28c22b4f8 100644
--- a/Dalamud/Hooking/Internal/ReloadedHook.cs
+++ b/Dalamud/Hooking/Internal/ReloadedHook.cs
@@ -30,6 +30,7 @@ namespace Dalamud.Hooking.Internal
this.hookImpl = ReloadedHooks.Instance.CreateHook(detour, address.ToInt64());
this.hookImpl.Activate();
+ this.hookImpl.Disable();
HookManager.TrackedHooks.TryAdd(Guid.NewGuid(), new HookInfo(this, detour, callingAssembly));
}