From a10dd416ac2b7023912cdd3836dd6da58a2d68ec Mon Sep 17 00:00:00 2001 From: Raymond Date: Sun, 22 Aug 2021 07:58:27 -0400 Subject: [PATCH] QoLBar reflects for these, may as well expose them. --- Dalamud/Plugin/DalamudPluginInterface.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Dalamud/Plugin/DalamudPluginInterface.cs b/Dalamud/Plugin/DalamudPluginInterface.cs index 73fec676d..f2988fa8e 100644 --- a/Dalamud/Plugin/DalamudPluginInterface.cs +++ b/Dalamud/Plugin/DalamudPluginInterface.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; @@ -123,6 +124,16 @@ namespace Dalamud.Plugin /// public XivChatType GeneralChatType { get; private set; } + /// + /// Gets a list of installed plugin names. + /// + public List PluginNames => Service.Get().InstalledPlugins.Select(p => p.Manifest.Name).ToList(); + + /// + /// Gets a list of installed plugin internal names. + /// + public List PluginInternalNames => Service.Get().InstalledPlugins.Select(p => p.Manifest.InternalName).ToList(); + #region Configuration /// @@ -210,7 +221,8 @@ namespace Dalamud.Plugin #endregion /// - /// Unregister your plugin and dispose all references. You have to call this when your IDalamudPlugin is disposed. + /// Unregister your plugin and dispose all references. + /// You have to call this when your IDalamudPlugin is disposed. /// public void Dispose() {