diff --git a/SteamTool.Core/SteamToolService.cs b/SteamTool.Core/SteamToolService.cs index 90adbd4a7..165a98a5b 100644 --- a/SteamTool.Core/SteamToolService.cs +++ b/SteamTool.Core/SteamToolService.cs @@ -43,8 +43,8 @@ namespace SteamTool.Core { var steamExePath = registryKeyService.ReadRegistryKey(Registry.CurrentUser, SteamRegistryPath, "SteamExe"); var steamPath = registryKeyService.ReadRegistryKey(Registry.CurrentUser, SteamRegistryPath, "SteamPath"); - steamExePath = Path.GetFullPath(steamExePath); - steamPath = Path.GetFullPath(steamPath); + //steamExePath = Path.GetFullPath(steamExePath); + //steamPath = Path.GetFullPath(steamPath); if (File.Exists(steamExePath)) { SteamExePath = steamExePath; @@ -91,7 +91,7 @@ namespace SteamTool.Core public List GetAllUser() { var users = new List(); - if (SteamPath != null) + if (File.Exists(SteamPath + UserVdfPath)) { var v = vdfService.GetVdfModelByPath(SteamPath + UserVdfPath); diff --git a/SteamTools/App.xaml.cs b/SteamTools/App.xaml.cs index 05eaf542a..27ac3c153 100644 --- a/SteamTools/App.xaml.cs +++ b/SteamTools/App.xaml.cs @@ -68,12 +68,11 @@ namespace SteamTools } Logger.EnableTextLog = true; #endif - + this.DispatcherUnhandledException += App_DispatcherUnhandledException; + DispatcherHelper.UIDispatcher = this.Dispatcher; if (e.Args.ContainsArg("-log")) { Logger.EnableTextLog = true; - this.DispatcherUnhandledException += App_DispatcherUnhandledException; - DispatcherHelper.UIDispatcher = this.Dispatcher; } if (e.Args.ContainsArg("-safe")) { diff --git a/SteamTools/Properties/AssemblyInfo.cs b/SteamTools/Properties/AssemblyInfo.cs index 8772d9bf7..55c7cab63 100644 Binary files a/SteamTools/Properties/AssemblyInfo.cs and b/SteamTools/Properties/AssemblyInfo.cs differ diff --git a/SteamTools/Services/ProxyService.cs b/SteamTools/Services/ProxyService.cs index d87ac69f3..46f322ee2 100644 --- a/SteamTools/Services/ProxyService.cs +++ b/SteamTools/Services/ProxyService.cs @@ -55,20 +55,20 @@ namespace SteamTools.Services DomainTag = DomainTag.SteamStore, IsEnable= false, }, - new ProxyDomainModel{ - Index=2, - Name=Resources.SteamImage, - Domains = new List{"steamcdn-a.akamaihd.net" }, - ToDomain = "steamstore-a.akamaihd.net", - Hosts = new List{ "steamcdn-a.akamaihd.net"}, - DomainTag = DomainTag.SteamImage, - IsEnable= false, - }, + //new ProxyDomainModel{ + // Index=2, + // Name=Resources.SteamImage, + // Domains = new List{"steamcdn-a.akamaihd.net" }, + // ToDomain = "steamuserimages-a.akamaihd.net", + // Hosts = new List{ "steamcdn-a.akamaihd.net"}, + // DomainTag = DomainTag.SteamImage, + // IsEnable= false, + //}, new ProxyDomainModel{ Index=3, Name=Resources.SteamChat, Domains = new List{"steam-chat.com" }, - ToDomain = "steamstore-a.akamaihd.net", + ToDomain = "s.team", Hosts = new List{ "steam-chat.com"}, DomainTag = DomainTag.SteamChat, IsEnable= false, diff --git a/SteamTools/Services/SteamConnectService.cs b/SteamTools/Services/SteamConnectService.cs index c51f5547e..0897df295 100644 --- a/SteamTools/Services/SteamConnectService.cs +++ b/SteamTools/Services/SteamConnectService.cs @@ -106,6 +106,12 @@ namespace SteamTools.Services if (IsConnectToSteam) { var id = ApiService.GetSteamId64(); + if (id == 76561197960265728) + { + //该64位id的steamID3等于0,是steam未获取到当前登录用户的默认返回值,所以直接重新获取 + IsConnectToSteam = false; + continue; + } CurrentSteamUser = await steamDbApiService.GetUserInfo(id); var mainViewModel = (WindowService.Current.MainWindow as MainWindowViewModel); mainViewModel.SteamAppPage.Initialize(); diff --git a/SteamTools/SteamTools.csproj b/SteamTools/SteamTools.csproj index 33bcbf823..14853d148 100644 --- a/SteamTools/SteamTools.csproj +++ b/SteamTools/SteamTools.csproj @@ -35,6 +35,8 @@ AnyCPU;x86 SteamTools + + @@ -316,9 +318,7 @@ ..\Lib\MetroTrilithon.Desktop.dll - - C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Windows.Forms.dll - + diff --git a/SteamTools/ViewModels/Page/CommunityProxyPageViewModel.cs b/SteamTools/ViewModels/Page/CommunityProxyPageViewModel.cs index 236ed91af..7b467d574 100644 --- a/SteamTools/ViewModels/Page/CommunityProxyPageViewModel.cs +++ b/SteamTools/ViewModels/Page/CommunityProxyPageViewModel.cs @@ -88,7 +88,8 @@ namespace SteamTools.ViewModels if (ProxySettings.SupportProxyServicesStatus.Value.ContainsKey(proxyDomain.Index)) { dic.Remove(proxyDomain.Index); - dic.Add(proxyDomain.Index, proxyDomain.IsEnable); + if (proxyDomain.IsEnable) + dic.Add(proxyDomain.Index, proxyDomain.IsEnable); } else { diff --git a/SteamTools/ViewModels/Page/SteamAccountPageViewModel.cs b/SteamTools/ViewModels/Page/SteamAccountPageViewModel.cs index 0d3c85369..27d5dfbc5 100644 --- a/SteamTools/ViewModels/Page/SteamAccountPageViewModel.cs +++ b/SteamTools/ViewModels/Page/SteamAccountPageViewModel.cs @@ -62,8 +62,15 @@ namespace SteamTools.ViewModels users[i].Timestamp = temp.Timestamp; users[i].LastLoginTime = temp.LastLoginTime; } - SteamUsers = users.OrderByDescending(o=>o.MostRecent).ThenByDescending(o=>o.RememberPassword).ThenByDescending(o=>o.LastLoginTime).ToList(); - StatusService.Current.Notify("加载本地Steam用户数据完成"); + if (SteamUsers.Count > 0) + { + SteamUsers = users.OrderByDescending(o => o.MostRecent).ThenByDescending(o => o.RememberPassword).ThenByDescending(o => o.LastLoginTime).ToList(); + StatusService.Current.Notify("加载本地Steam用户数据完成"); + } + else + { + StatusService.Current.Notify("没有检测到Steam用户数据"); + } }).ContinueWith(s => s.Dispose()); } diff --git a/SteamTools/Views/Content/About/AboutDonate.xaml b/SteamTools/Views/Content/About/AboutDonate.xaml index 503b8ee36..06b5facd7 100644 --- a/SteamTools/Views/Content/About/AboutDonate.xaml +++ b/SteamTools/Views/Content/About/AboutDonate.xaml @@ -35,7 +35,7 @@ TextAlignment="Left" MaxPageWidth="900"> - + @@ -51,11 +51,12 @@ - + + - + diff --git a/SteamTools/Views/Controls/StatusBar.xaml b/SteamTools/Views/Controls/StatusBar.xaml index 65b47262e..2ab11ddeb 100644 --- a/SteamTools/Views/Controls/StatusBar.xaml +++ b/SteamTools/Views/Controls/StatusBar.xaml @@ -44,19 +44,8 @@ Value="Center" /> - - - - + + + + - + + + + + + + + + - - + + - + - + - - - - - - - - - - - + - +