mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
feat: add interface state to troubleshooting
This commit is contained in:
parent
1f0f0fd30d
commit
188a8565e0
2 changed files with 7 additions and 3 deletions
|
|
@ -116,6 +116,7 @@ namespace Dalamud {
|
||||||
|
|
||||||
PluginRepository = new PluginRepository(this, pluginDir, this.StartInfo.GameVersion);
|
PluginRepository = new PluginRepository(this, pluginDir, this.StartInfo.GameVersion);
|
||||||
|
|
||||||
|
var isInterfaceLoaded = false;
|
||||||
if (!bool.Parse(Environment.GetEnvironmentVariable("DALAMUD_NOT_HAVE_INTERFACE") ?? "false")) {
|
if (!bool.Parse(Environment.GetEnvironmentVariable("DALAMUD_NOT_HAVE_INTERFACE") ?? "false")) {
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
@ -123,6 +124,7 @@ namespace Dalamud {
|
||||||
InterfaceManager.OnDraw += BuildDalamudUi;
|
InterfaceManager.OnDraw += BuildDalamudUi;
|
||||||
|
|
||||||
InterfaceManager.Enable();
|
InterfaceManager.Enable();
|
||||||
|
isInterfaceLoaded = true;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
@ -171,7 +173,7 @@ namespace Dalamud {
|
||||||
|
|
||||||
IsReady = true;
|
IsReady = true;
|
||||||
|
|
||||||
Troubleshooting.LogTroubleshooting(this);
|
Troubleshooting.LogTroubleshooting(this, isInterfaceLoaded);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,10 @@ namespace Dalamud
|
||||||
public string Language { get; set; }
|
public string Language { get; set; }
|
||||||
public bool DoDalamudTest { get; set; }
|
public bool DoDalamudTest { get; set; }
|
||||||
public bool DoPluginTest { get; set; }
|
public bool DoPluginTest { get; set; }
|
||||||
|
public bool InterfaceLoaded { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void LogTroubleshooting(Dalamud dalamud) {
|
public static void LogTroubleshooting(Dalamud dalamud, bool isInterfaceLoaded) {
|
||||||
try {
|
try {
|
||||||
var payload = new TroubleshootingPayload {
|
var payload = new TroubleshootingPayload {
|
||||||
LoadedPlugins = dalamud.PluginManager.Plugins.Select(x => x.Definition).ToArray(),
|
LoadedPlugins = dalamud.PluginManager.Plugins.Select(x => x.Definition).ToArray(),
|
||||||
|
|
@ -26,7 +27,8 @@ namespace Dalamud
|
||||||
GameVersion = dalamud.StartInfo.GameVersion,
|
GameVersion = dalamud.StartInfo.GameVersion,
|
||||||
Language = dalamud.StartInfo.Language.ToString(),
|
Language = dalamud.StartInfo.Language.ToString(),
|
||||||
DoDalamudTest = dalamud.Configuration.DoDalamudTest,
|
DoDalamudTest = dalamud.Configuration.DoDalamudTest,
|
||||||
DoPluginTest = dalamud.Configuration.DoPluginTest
|
DoPluginTest = dalamud.Configuration.DoPluginTest,
|
||||||
|
InterfaceLoaded = isInterfaceLoaded
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue