Skip to content

Commit

Permalink
Fix Battle.net GetPath
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew committed Feb 1, 2016
1 parent 5f752c9 commit cb11ed2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SteamCleaner/Analyzer/Analyzers/BattlenetAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Windows;

#endregion

Expand All @@ -21,7 +22,7 @@ public bool CheckExists()
public IEnumerable<string> FindPaths()
{
var paths = new List<string>();
var productPath = GetBattleNetPath() + GetProductDbPath();
var productPath = GetProductDbPath();
if (File.Exists(productPath))
{
var data = File.ReadAllText(productPath);
Expand Down Expand Up @@ -54,13 +55,13 @@ public IEnumerable<string> FindPaths()
private string GetProductDbPath()
{
return Path.Combine(GetBattleNetPath(),
"\\Agent\\product.db");
"Agent\\product.db");
}

private string GetBattleNetPath()
{
return Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) +
"\\Battle.net";
@"\Battle.net";
}
}
}

0 comments on commit cb11ed2

Please sign in to comment.