From ec55f673a17e887e7a7d4f539fc827d4e05d9e0f Mon Sep 17 00:00:00 2001 From: Philpax Date: Sat, 6 Nov 2021 20:29:24 +0100 Subject: [PATCH] fix: only enable antidebug if it has not already been enabled --- Dalamud/Dalamud.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dalamud/Dalamud.cs b/Dalamud/Dalamud.cs index beacf3a6b..78bbeeccb 100644 --- a/Dalamud/Dalamud.cs +++ b/Dalamud/Dalamud.cs @@ -144,12 +144,15 @@ namespace Dalamud var configuration = Service.Get(); var antiDebug = Service.Set(); - if (configuration.IsAntiAntiDebugEnabled) - antiDebug.Enable(); -#if DEBUG if (!antiDebug.IsEnabled) + { +#if DEBUG antiDebug.Enable(); +#else + if (configuration.IsAntiAntiDebugEnabled) + antiDebug.Enable(); #endif + } Log.Information("[T2] AntiDebug OK!"); Service.Set();