mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
fix not being able to load multiple plugins with the same name, as when updating in-game
This commit is contained in:
parent
e9d4d57696
commit
760dee2322
1 changed files with 2 additions and 2 deletions
|
|
@ -99,8 +99,8 @@ namespace Dalamud.Plugin
|
||||||
|
|
||||||
Log.Information("Loading assembly at {0}", dllFile);
|
Log.Information("Loading assembly at {0}", dllFile);
|
||||||
|
|
||||||
var assemblyName = AssemblyName.GetAssemblyName(dllFile.FullName);
|
// Assembly.Load() by name here will not load multiple versions with the same name, in the case of updates
|
||||||
var pluginAssembly = Assembly.Load(assemblyName);
|
var pluginAssembly = Assembly.LoadFile(dllFile.FullName);
|
||||||
|
|
||||||
if (pluginAssembly != null)
|
if (pluginAssembly != null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue