Skip to content
This repository has been archived by the owner on May 15, 2022. It is now read-only.

Commit

Permalink
Fix error with CN version handling
Browse files Browse the repository at this point in the history
  • Loading branch information
PhantomGamers committed Sep 16, 2020
1 parent 053274d commit 22165b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public static bool GetLatestFriendsCss(bool force = false)
wc.Headers.Add("user-agent", "Mozilla/5.0 (Windows; U; Windows NT 10.0; en-US; Valve Steam Client/default/1596241936; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36");
wc.Headers[HttpRequestHeader.AcceptEncoding] = "gzip";

var friendsCss = wc.DownloadData(friendsCssUrls.ElementAt(i) + (Settings.Default.steamLocale == "CN" ? "&_cdn=china_pinyuncloud" : string.Empty));
var friendsCss = wc.DownloadData(friendsCssUrls.ElementAt(i) + (Settings.Default.steamLocale == "CN" ? "?_cdn=china_pinyuncloud" : string.Empty));
friendsCssCrcs[i] = friendsCss.Skip(friendsCss.Length - 4).Take(4).ToArray();
friendsCssesPatched[i] = Compress(PrependFile(Decompress(friendsCss)));

Expand Down

0 comments on commit 22165b9

Please sign in to comment.