feat: add interface state to troubleshooting

This commit is contained in:
goat 2020-08-13 00:05:35 +02:00
parent 1f0f0fd30d
commit 188a8565e0
2 changed files with 7 additions and 3 deletions

View file

@ -116,6 +116,7 @@ namespace Dalamud {
PluginRepository = new PluginRepository(this, pluginDir, this.StartInfo.GameVersion);
var isInterfaceLoaded = false;
if (!bool.Parse(Environment.GetEnvironmentVariable("DALAMUD_NOT_HAVE_INTERFACE") ?? "false")) {
try
{
@ -123,6 +124,7 @@ namespace Dalamud {
InterfaceManager.OnDraw += BuildDalamudUi;
InterfaceManager.Enable();
isInterfaceLoaded = true;
}
catch (Exception e)
{
@ -171,7 +173,7 @@ namespace Dalamud {
IsReady = true;
Troubleshooting.LogTroubleshooting(this);
Troubleshooting.LogTroubleshooting(this, isInterfaceLoaded);
});
}