AntiDebug: persist state in config

This commit is contained in:
Philpax 2021-07-11 00:21:19 +02:00
parent 8161fafc9e
commit 090da41ff1
4 changed files with 18 additions and 3 deletions

View file

@ -229,8 +229,11 @@ namespace Dalamud
this.Configuration = DalamudConfiguration.Load(this.StartInfo.ConfigurationPath);
this.AntiDebug = new AntiDebug(this.SigScanner);
if (this.Configuration.IsAntiAntiDebugEnabled)
this.AntiDebug.Enable();
#if DEBUG
this.AntiDebug.Enable();
if (!this.AntiDebug.IsEnabled)
this.AntiDebug.Enable();
#endif
Log.Information("[T2] AntiDebug OK!");