Fix process filtering not working correctly

This commit is contained in:
ghorsington committed 2019-06-12 16:44:50 +03:00
1 parent a8ceaa97ed
commit f8b7671e4e
1 file changed
+1 -3
+1 -3
View File
@@ -97,7 +97,7 @@ namespace BepInEx.Bootstrap
//Perform a filter for currently running process
var filters = BepInProcess.FromCecilType(type);
bool invalidProcessName = filters.Any(x => x.ProcessName.ToLower().Replace(".exe", "") == Paths.ProcessName);
bool invalidProcessName = filters.Any(x => !string.Equals(x.ProcessName.Replace(".exe", ""), Paths.ProcessName, StringComparison.InvariantCultureIgnoreCase));
if (invalidProcessName)
{
@@ -107,8 +107,6 @@ namespace BepInEx.Bootstrap
var dependencies = BepInDependency.FromCecilType(type);
Logger.LogInfo($"Type path: {type.Module.FileName}");
return new PluginInfo
{
Metadata = metadata,