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

Rebase of 9d305e1
This commit is contained in:
Bepis committed 2020-11-06 03:02:21 +11:00
1 parent d696380f74
commit 95e0d00a51
1 file changed
+1 -2
+1 -2
View File
@@ -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;
}