diff --git a/SteamCleaner/Analyzer/Analyzers/BattlenetAnalyzer.cs b/SteamCleaner/Analyzer/Analyzers/BattlenetAnalyzer.cs index a3a2b20..8e6f322 100644 --- a/SteamCleaner/Analyzer/Analyzers/BattlenetAnalyzer.cs +++ b/SteamCleaner/Analyzer/Analyzers/BattlenetAnalyzer.cs @@ -41,7 +41,7 @@ public IEnumerable FindPaths() { line = line.Remove(0, 1); } - if (Directory.Exists(line) && !line.Contains("Support")) + if (Directory.Exists(line)) { paths.Add(line); } diff --git a/SteamCleaner/Analyzer/FileFinders/RedisFileFinder.cs b/SteamCleaner/Analyzer/FileFinders/RedisFileFinder.cs index 0a5a86c..b43fd7e 100644 --- a/SteamCleaner/Analyzer/FileFinders/RedisFileFinder.cs +++ b/SteamCleaner/Analyzer/FileFinders/RedisFileFinder.cs @@ -14,6 +14,8 @@ public class RedisFileFinder : IFileFinder private readonly Regex dirRegex = new Regex("(.*)(directx|redist|miles|support|installer)(.*)", RegexOptions.IgnoreCase); + + private readonly Regex fileRegex = new Regex("(cab|exe|msi|so)", RegexOptions.IgnoreCase); public IEnumerable FindFiles(IEnumerable paths) @@ -27,6 +29,16 @@ public void Search(List files, IEnumerable paths) { foreach (var path in paths) { + //These three games put game files in the support folders + if (path.Contains("Heroes of the Storm") || path.Contains("StarCraft")) + { + continue; + } + if (path.Contains("Penumbra Overture\\redist")) + { + continue; + + } if (!dirRegex.IsMatch(path)) { continue;