Browse Source

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

Bepis 4 years ago
parent
commit
95e0d00a51
1 changed files with 1 additions and 2 deletions
  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;
 				}