Skip to content

Instantly share code, notes, and snippets.

@hobblygobbly
Created December 30, 2013 12:01
Show Gist options
  • Save hobblygobbly/8181314 to your computer and use it in GitHub Desktop.
Save hobblygobbly/8181314 to your computer and use it in GitHub Desktop.
#if !DEBUG //Dont patch client while in DEBUG
if (VersionSplit.Length == 3)
{
string[] versionArray = VersionString.Split('|');
if (VersionSplit[0] != CurrentMD5)
{
LogTextBox("LegendaryClient needs to be updated");
/*Dispatcher.BeginInvoke(DispatcherPriority.Input, new ThreadStart(() =>
{
CurrentStatusLabel.Content = "Downloading latest LegendaryClient...";
}));
client.DownloadFile(versionArray[2], "COL.ZIP");
Directory.CreateDirectory("Patch");
System.IO.Compression.ZipFile.ExtractToDirectory("COL.ZIP", "Patch");
File.Delete("COL.ZIP");
System.Diagnostics.Process.Start("Patcher.exe");
Environment.Exit(0);*/
/* }
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment