Преглед изворни кода

Fix skipping loading plugins with the same GUID if previous match fails process filter

ghorsington пре 4 година
родитељ
комит
9d305e16fa
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      BepInEx/Bootstrap/Chainloader.cs

+ 1 - 2
BepInEx/Bootstrap/Chainloader.cs

@@ -265,8 +265,6 @@ namespace BepInEx.Bootstrap
 							continue;
 						}
 
-						loadedVersion = pluginInfo;
-
 						// Perform checks that will prevent loading plugins in this run
 						var filters = pluginInfo.Processes.ToList();
 						bool invalidProcessName = filters.Count != 0 && filters.All(x => !string.Equals(x.ProcessName.Replace(".exe", ""), Paths.ProcessName, StringComparison.InvariantCultureIgnoreCase));
@@ -277,6 +275,7 @@ namespace BepInEx.Bootstrap
 							continue;
 						}
 
+						loadedVersion = pluginInfo;
 						dependencyDict[pluginInfo.Metadata.GUID] = pluginInfo.Dependencies.Select(d => d.DependencyGUID);
 						pluginsByGUID[pluginInfo.Metadata.GUID] = pluginInfo;
 					}