mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: don't instantiate plugins from duplicated AssemblyNames
This commit is contained in:
parent
da8c66c394
commit
f747b2f9c0
1 changed files with 5 additions and 0 deletions
|
|
@ -123,6 +123,11 @@ namespace Dalamud.Plugin
|
|||
return false;
|
||||
}
|
||||
|
||||
if (this.Plugins.Any(x => x.Plugin.GetType().Assembly.GetName().Name == type.Assembly.GetName().Name)) {
|
||||
Log.Error("Duplicate plugin found: {0}", dllFile.FullName);
|
||||
return false;
|
||||
}
|
||||
|
||||
var plugin = (IDalamudPlugin)Activator.CreateInstance(type);
|
||||
|
||||
// this happens for raw plugins that don't specify a PluginDefinition - just generate a dummy one to avoid crashes anywhere
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue