From cb11ed230b117c4a331354e98080dc68dcfc3a6b Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 1 Feb 2016 12:27:03 -0500 Subject: [PATCH] Fix Battle.net GetPath --- SteamCleaner/Analyzer/Analyzers/BattlenetAnalyzer.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SteamCleaner/Analyzer/Analyzers/BattlenetAnalyzer.cs b/SteamCleaner/Analyzer/Analyzers/BattlenetAnalyzer.cs index 582def4..c23feca 100644 --- a/SteamCleaner/Analyzer/Analyzers/BattlenetAnalyzer.cs +++ b/SteamCleaner/Analyzer/Analyzers/BattlenetAnalyzer.cs @@ -4,6 +4,7 @@ using System.Collections.Generic; using System.IO; using System.Text.RegularExpressions; +using System.Windows; #endregion @@ -21,7 +22,7 @@ public bool CheckExists() public IEnumerable FindPaths() { var paths = new List(); - var productPath = GetBattleNetPath() + GetProductDbPath(); + var productPath = GetProductDbPath(); if (File.Exists(productPath)) { var data = File.ReadAllText(productPath); @@ -54,13 +55,13 @@ public IEnumerable 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"; } } } \ No newline at end of file