fix common incorrect executable detection
This commit is contained in:
parent
3522488392
commit
662a5a164b
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ internal static class Resources
|
||||||
|
|
||||||
private static bool IsCommonIncorrectExecutable(this string rootDirectory, string path)
|
private static bool IsCommonIncorrectExecutable(this string rootDirectory, string path)
|
||||||
{
|
{
|
||||||
string subPath = path[rootDirectory.Length..].ResolvePath();
|
string subPath = path[rootDirectory.Length..].ResolvePath()?.ToUpperInvariant();
|
||||||
return subPath is null || subPath.Contains("SETUP") || subPath.Contains("REDIST") || subPath.Contains("SUPPORT")
|
return subPath is null || subPath.Contains("SETUP") || subPath.Contains("REDIST") || subPath.Contains("SUPPORT")
|
||||||
|| subPath.Contains("CRASH") && (subPath.Contains("PAD") || subPath.Contains("REPORT")) || subPath.Contains("HELPER")
|
|| subPath.Contains("CRASH") && (subPath.Contains("PAD") || subPath.Contains("REPORT")) || subPath.Contains("HELPER")
|
||||||
|| subPath.Contains("CEFPROCESS") || subPath.Contains("ZFGAMEBROWSER") || subPath.Contains("MONO") || subPath.Contains("PLUGINS")
|
|| subPath.Contains("CEFPROCESS") || subPath.Contains("ZFGAMEBROWSER") || subPath.Contains("MONO") || subPath.Contains("PLUGINS")
|
||||||
|
|
Loading…
Reference in a new issue