mirror of
https://github.com/JDM170/SteamAchievementManager
synced 2025-12-10 05:37:18 +07:00
- Use HTTPS URLs for game logos/achievement icons. Fixes #87.
- Fix DoDownloadLogo not catching exceptions for DownloadData.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Net;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace SAM.Game
|
||||
@@ -84,6 +85,12 @@ namespace SAM.Game
|
||||
return;
|
||||
}
|
||||
|
||||
/* Disable server certificate validation.
|
||||
* This is for media downloads (achievement icons).
|
||||
* https://media.steamcommunity.com/ has certs issued to (various).e.akamai.net.
|
||||
*/
|
||||
ServicePointManager.ServerCertificateValidationCallback = (s, ce, ch, e) => true;
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Manager(appId, client));
|
||||
|
||||
Reference in New Issue
Block a user