mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
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:
commit
47428d5c03
1 changed files with 6 additions and 3 deletions
|
|
@ -144,12 +144,15 @@ namespace Dalamud
|
||||||
var configuration = Service<DalamudConfiguration>.Get();
|
var configuration = Service<DalamudConfiguration>.Get();
|
||||||
|
|
||||||
var antiDebug = Service<AntiDebug>.Set();
|
var antiDebug = Service<AntiDebug>.Set();
|
||||||
if (configuration.IsAntiAntiDebugEnabled)
|
|
||||||
antiDebug.Enable();
|
|
||||||
#if DEBUG
|
|
||||||
if (!antiDebug.IsEnabled)
|
if (!antiDebug.IsEnabled)
|
||||||
|
{
|
||||||
|
#if DEBUG
|
||||||
antiDebug.Enable();
|
antiDebug.Enable();
|
||||||
|
#else
|
||||||
|
if (configuration.IsAntiAntiDebugEnabled)
|
||||||
|
antiDebug.Enable();
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
Log.Information("[T2] AntiDebug OK!");
|
Log.Information("[T2] AntiDebug OK!");
|
||||||
|
|
||||||
Service<WinSockHandlers>.Set();
|
Service<WinSockHandlers>.Set();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue