fix not being able to load multiple plugins with the same name, as when updating in-game

This commit is contained in:
meli 2020-03-22 07:44:05 -07:00
parent e9d4d57696
commit 760dee2322

View file

@ -99,8 +99,8 @@ namespace Dalamud.Plugin
Log.Information("Loading assembly at {0}", dllFile);
var assemblyName = AssemblyName.GetAssemblyName(dllFile.FullName);
var pluginAssembly = Assembly.Load(assemblyName);
// Assembly.Load() by name here will not load multiple versions with the same name, in the case of updates
var pluginAssembly = Assembly.LoadFile(dllFile.FullName);
if (pluginAssembly != null)
{