mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 12:44:16 +01:00
poop
This commit is contained in:
parent
3726ead111
commit
b04adaecfc
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
using Dalamud.Configuration.Internal;
|
using Dalamud.Configuration.Internal;
|
||||||
|
|
@ -43,7 +44,7 @@ namespace Dalamud.Hooking
|
||||||
public Hook(IntPtr address, T detour, bool useMinHook)
|
public Hook(IntPtr address, T detour, bool useMinHook)
|
||||||
{
|
{
|
||||||
address = HookManager.FollowJmp(address);
|
address = HookManager.FollowJmp(address);
|
||||||
this.isMinHook = useMinHook || EnvironmentConfiguration.DalamudForceCoreHook;
|
this.isMinHook = true;
|
||||||
|
|
||||||
var hasOtherHooks = HookManager.Originals.ContainsKey(address);
|
var hasOtherHooks = HookManager.Originals.ContainsKey(address);
|
||||||
if (!hasOtherHooks)
|
if (!hasOtherHooks)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue