feat: add aers menu thingy

This commit is contained in:
goat 2021-04-26 20:39:09 +02:00
parent b29f837947
commit e930c98769
No known key found for this signature in database
GPG key ID: F18F057873895461
2 changed files with 180 additions and 1 deletions

View file

@ -6,6 +6,7 @@ using System.Threading;
using Dalamud.Configuration;
using Dalamud.Data;
using Dalamud.Game;
using Dalamud.Game.Addon;
using Dalamud.Game.Text.SeStringHandling;
using Dalamud.Game.ClientState;
using Dalamud.Game.Command;
@ -164,6 +165,11 @@ namespace Dalamud
/// </summary>
internal NetworkHandlers NetworkHandlers { get; private set; }
/// <summary>
/// Gets subsystem responsible for adding the Dalamud menu items to the game's system menu.
/// </summary>
internal DalamudSystemMenu SystemMenu { get; private set; }
#endregion
/// <summary>
@ -198,7 +204,7 @@ namespace Dalamud
this.AntiDebug = new AntiDebug(this.SigScanner);
#if DEBUG
AntiDebug.Enable();
this.AntiDebug.Enable();
#endif
Log.Information("[START] AntiDebug OK!");
@ -315,6 +321,9 @@ namespace Dalamud
Log.Information("[START] DUI OK!");
this.SystemMenu = new DalamudSystemMenu(this);
this.SystemMenu.Enable();
this.IsReady = true;
Troubleshooting.LogTroubleshooting(this, isInterfaceLoaded);
@ -404,6 +413,8 @@ namespace Dalamud
this.AntiDebug?.Dispose();
this.SystemMenu?.Dispose();
Log.Debug("Dalamud::Dispose() OK!");
}
catch (Exception ex)