Merge pull request #678 from philpax/fix-antidebug-t2-fail

fix: only enable antidebug if it has not already been enabled
This commit is contained in:
goaaats 2021-11-06 20:41:22 +01:00 committed by GitHub
commit 47428d5c03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,12 +144,15 @@ namespace Dalamud
var configuration = Service<DalamudConfiguration>.Get();
var antiDebug = Service<AntiDebug>.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<WinSockHandlers>.Set();