mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Fix process filtering not working correctly
This commit is contained in:
1 parent
a8ceaa97ed
commit
f8b7671e4e
1 file changed
+1
-3
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user