Skip to content

Commit

Permalink
Fixes #32
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Sampson committed Dec 29, 2016
1 parent 9e9c50d commit 5e942d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SteamCleaner/Analyzer/Analyzers/BattlenetAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public IEnumerable<string> FindPaths()
{
line = line.Remove(0, 1);
}
if (Directory.Exists(line) && !line.Contains("Support"))
if (Directory.Exists(line))
{
paths.Add(line);
}
Expand Down
12 changes: 12 additions & 0 deletions SteamCleaner/Analyzer/FileFinders/RedisFileFinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> FindFiles(IEnumerable<string> paths)
Expand All @@ -27,6 +29,16 @@ public void Search(List<string> files, IEnumerable<string> 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;
Expand Down

0 comments on commit 5e942d6

Please sign in to comment.