mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: add plugin states to ts payload
This commit is contained in:
parent
48368bcdb8
commit
bb6be3fdfc
1 changed files with 4 additions and 1 deletions
|
|
@ -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<string, string>? PluginStates { get; set; }
|
||||
|
||||
public string DalamudVersion { get; set; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue