From 3c538a2e475ea40436c5d8febdbb96fe4bf461b3 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Sat, 3 Jun 2023 18:24:55 -0400 Subject: [PATCH] fix common incorrect executable detection --- CreamInstaller/Resources/Resources.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CreamInstaller/Resources/Resources.cs b/CreamInstaller/Resources/Resources.cs index bc31e28..e756f8a 100644 --- a/CreamInstaller/Resources/Resources.cs +++ b/CreamInstaller/Resources/Resources.cs @@ -522,8 +522,8 @@ internal static class Resources private static bool IsCommonIncorrectExecutable(this string rootDirectory, string path) { - string subPath = path[rootDirectory.Length..].ResolvePath()?.ToUpperInvariant(); - return subPath is null || subPath.Contains("SETUP") || subPath.Contains("REDIST") || subPath.Contains("SUPPORT") + string subPath = path[rootDirectory.Length..].ToUpperInvariant(); + return subPath.Contains("SETUP") || subPath.Contains("REDIST") || subPath.Contains("SUPPORT") || 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("MODDING") || subPath.Contains("MOD") && subPath.Contains("MANAGER") || subPath.Contains("BATTLEYE")