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

This commit is contained in:
ghorsington committed 2020-08-05 23:05:40 +03:00
1 parent ae34d9f7ac
commit 9d305e16fa
1 file changed
+1 -2
+1 -2
View File
@@ -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;
}