Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void CheckForUpdates() {
- Thread thread = new Thread(new ThreadStart(delegate {
- WebClient client = new WebClient();
- string pcID = SystemInformation.ComputerName.GetHashCode().ToString() + SystemInformation.UserName.GetHashCode().ToString() + Environment.OSVersion.GetHashCode().ToString();
- Stream downloadStream = canSendSpecs ? client.OpenRead(string.Format("http://www.sebastianlawe.com/games/SmashyBall.aspx?id={0}os={1}monitors={2}resolutions={3}processors={4}is64Bit={5}",
- pcID,
- Environment.OSVersion,
- Screen.AllScreens.Length,
- GetScreens(),
- Environment.ProcessorCount,
- Environment.Is64BitOperatingSystem.ToString())) : client.OpenRead("http://www.sebastianlawe.com/games/SmashyBall.aspx");
- using (BinaryReader reader = new BinaryReader(downloadStream)) {
- int version = reader.ReadInt32();
- string downloadPath = reader.ReadString();
- }
- }));
- thread.Start();
- }
Advertisement
Add Comment
Please, Sign In to add comment