diff --git a/Dalamud/Plugin/DalamudPluginInterface.cs b/Dalamud/Plugin/DalamudPluginInterface.cs
index e0fa641cc..623c524d2 100644
--- a/Dalamud/Plugin/DalamudPluginInterface.cs
+++ b/Dalamud/Plugin/DalamudPluginInterface.cs
@@ -40,7 +40,8 @@ namespace Dalamud.Plugin
/// Location of the assembly.
/// The reason the plugin was loaded.
/// A value indicating whether this is a dev plugin.
- internal DalamudPluginInterface(string pluginName, FileInfo assemblyLocation, PluginLoadReason reason, bool isDev)
+ /// The repository from which the plugin is installed.
+ internal DalamudPluginInterface(string pluginName, FileInfo assemblyLocation, PluginLoadReason reason, bool isDev, string sourceRepository)
{
var configuration = Service.Get();
var dataManager = Service.Get();
@@ -53,6 +54,7 @@ namespace Dalamud.Plugin
this.configs = Service.Get().PluginConfigs;
this.Reason = reason;
this.IsDev = isDev;
+ this.SourceRepository = isDev ? "DevPlugin" : sourceRepository;
this.LoadTime = DateTime.Now;
this.LoadTimeUTC = DateTime.UtcNow;
@@ -122,6 +124,11 @@ namespace Dalamud.Plugin
///
public FileInfo AssemblyLocation { get; }
+ ///
+ /// Gets the custom repository from which this plugin is installed, the main repo flag or "DevPlugin".
+ ///
+ public string SourceRepository { get; }
+
///
/// Gets the directory your plugin configurations are stored in.
///
diff --git a/Dalamud/Plugin/Internal/Types/LocalPlugin.cs b/Dalamud/Plugin/Internal/Types/LocalPlugin.cs
index f34990b94..f30e0632c 100644
--- a/Dalamud/Plugin/Internal/Types/LocalPlugin.cs
+++ b/Dalamud/Plugin/Internal/Types/LocalPlugin.cs
@@ -400,7 +400,7 @@ internal class LocalPlugin : IDisposable
new PluginPatchData(this.DllFile);
this.DalamudInterface =
- new DalamudPluginInterface(this.pluginAssembly.GetName().Name!, this.DllFile, reason, this.IsDev);
+ new DalamudPluginInterface(this.pluginAssembly.GetName().Name!, this.DllFile, reason, this.IsDev, this.Manifest.InstalledFromUrl );
if (this.Manifest.LoadSync && this.Manifest.LoadRequiredState is 0 or 1)
{