mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Fix skipping loading plugins with the same GUID if previous match fails process filter
This commit is contained in:
1 parent
ae34d9f7ac
commit
9d305e16fa
1 file changed
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user