From bb6be3fdfc55530beeb9baea365c7636b9b220a9 Mon Sep 17 00:00:00 2001 From: goat Date: Wed, 24 May 2023 21:50:36 +0200 Subject: [PATCH] feat: add plugin states to ts payload --- Dalamud/Support/Troubleshooting.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dalamud/Support/Troubleshooting.cs b/Dalamud/Support/Troubleshooting.cs index 922fc5e50..be7e5e659 100644 --- a/Dalamud/Support/Troubleshooting.cs +++ b/Dalamud/Support/Troubleshooting.cs @@ -68,6 +68,7 @@ public static class Troubleshooting var payload = new TroubleshootingPayload { LoadedPlugins = pluginManager?.InstalledPlugins?.Select(x => x.Manifest)?.OrderByDescending(x => x.InternalName).ToArray(), + PluginStates = pluginManager?.InstalledPlugins?.ToDictionary(x => x.Manifest.InternalName, x => x.State.ToString()), DalamudVersion = Util.AssemblyVersion, DalamudGitHash = Util.GetGitHash(), GameVersion = startInfo.GameVersion.ToString(), @@ -100,7 +101,9 @@ public static class Troubleshooting private class TroubleshootingPayload { - public LocalPluginManifest[] LoadedPlugins { get; set; } + public LocalPluginManifest[]? LoadedPlugins { get; set; } + + public Dictionary? PluginStates { get; set; } public string DalamudVersion { get; set; }