瀏覽代碼

Fix skipping loading plugins with the same GUID if previous match fails process filter
Rebase of 9d305e1

Bepis 4 年之前
父節點
當前提交
95e0d00a51
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      BepInEx.Core/Bootstrap/BaseChainloader.cs

+ 1 - 2
BepInEx.Core/Bootstrap/BaseChainloader.cs

@@ -96,8 +96,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));
@@ -108,6 +106,7 @@ namespace BepInEx.Bootstrap
 						continue;
 					}
 
+					loadedVersion = pluginInfo;
 					dependencyDict[pluginInfo.Metadata.GUID] = pluginInfo.Dependencies.Select(d => d.DependencyGUID);
 					pluginsByGuid[pluginInfo.Metadata.GUID] = pluginInfo;
 				}