Skip to content

Commit

Permalink
修改steam社区商店页的代理上游
Browse files Browse the repository at this point in the history
修复成就窗口关闭游戏依然运行
  • Loading branch information
rmbadmin committed Dec 27, 2020
1 parent f805911 commit f395383
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
1 change: 0 additions & 1 deletion SteamTools/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="clr-namespace:System;assembly=mscorlib"
ShutdownMode="OnExplicitShutdown"
xmlns:converters="http://schemes.grabacr.net/winfx/2015/personal/converters">
<Application.Resources>
<ResourceDictionary>
Expand Down
6 changes: 4 additions & 2 deletions SteamTools/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ protected override void OnStartup(StartupEventArgs e)
}
Logger.EnableTextLog = true;
#endif
App.Current.ShutdownMode = ShutdownMode.OnExplicitShutdown;
this.DispatcherUnhandledException += App_DispatcherUnhandledException;
DispatcherHelper.UIDispatcher = this.Dispatcher;
if (e.Args.ContainsArg("-log"))
Expand All @@ -86,7 +87,7 @@ protected override void OnStartup(StartupEventArgs e)
GeneralSettings.Culture.Subscribe(x => ResourceService.Current.ChangeCulture(x)).AddTo(this);
WindowService.Current.AddTo(this).Initialize();
ProxyService.Current.Initialize();
SteamConnectService.Current.Initialize();
SteamConnectService.Current.Initialize();
AuthService.Current.Initialize();
if (GeneralSettings.IsAutoCheckUpdate)
{
Expand Down Expand Up @@ -140,7 +141,7 @@ private void App_DispatcherUnhandledException(object sender, System.Windows.Thre
catch (Exception ex)
{
Debug.WriteLine(ex);
MessageBox.Show(ex.Message, "Error");
MessageBox.Show(ex.Message, $"{ProductInfo.Title} {ProductInfo.VersionString} Error");
}

Current.Shutdown();
Expand Down Expand Up @@ -177,6 +178,7 @@ private void ProcessCommandLineParameter(string[] args)
}
if (args.ContainsArg("-app", out int appid))
{
App.Current.ShutdownMode = ShutdownMode.OnMainWindowClose;
ThemeService.Current.Register(this, Theme.Windows, Accent.Windows);
new SettingsPageViewModel();
WindowService.Current.AddTo(this).Initialize(appid);
Expand Down
9 changes: 6 additions & 3 deletions SteamTools/Services/ProxyService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public void Initialize()
Index=0,
Name=Resources.SteamCommunity,
Domains = new List<string>{"steamcommunity.com" },
ToDomain = "steamcommunity-a.akamaihd.net",
//ToDomain = "steamcommunity-a.akamaihd.net",
ToDomain = "steampowered.com",
Hosts = new List<string>{ "steamcommunity.com", "www.steamcommunity.com"},
DomainTag = DomainTag.SteamCommunity,
IsEnable= true,
Expand All @@ -58,7 +59,8 @@ public void Initialize()
Index=1,
Name=Resources.SteamStore,
Domains = new List<string>{"steampowered.com" },
ToDomain = "steamstore-a.akamaihd.net",
//ToDomain = "steamstore-a.akamaihd.net",
ToDomain = "steampowered.com",
Hosts = new List<string>{ "store.steampowered.com", "api.steampowered.com"},
DomainTag = DomainTag.SteamStore,
IsEnable= false,
Expand All @@ -77,7 +79,8 @@ public void Initialize()
Index=3,
Name=Resources.SteamChat,
Domains = new List<string>{"steam-chat.com" },
ToDomain = "steamstore-a.akamaihd.net",
//ToDomain = "steamstore-a.akamaihd.net",
ToDomain = "steampowered.com",
Hosts = new List<string>{ "steam-chat.com"},
DomainTag = DomainTag.SteamChat,
IsEnable= false,
Expand Down

0 comments on commit f395383

Please sign in to comment.