Created
December 30, 2013 12:01
-
-
Save hobblygobbly/8181314 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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