Example #1
0
 /// <summary>
 /// Fires when the PatchServerConnection has downloaded a patch file
 /// </summary>
 /// <param name="con">the connection that downloaded the patch</param>
 /// <param name="version">the version that the patch will bring us to, once applied</param>
 /// <param name="path">the full path, on the local disk, to the patch file</param>
 private static void OnPatchArrived(PatchServerConnection con, long fileLength, string fileName)
 {
     Log.LogMsg("Got patch " + Path.GetFileName(fileName) + " .");
     AddMsg("Got patch " + Path.GetFileName(fileName) + " .");
     if (PatchArrived != null)
     {
         PatchArrived(fileName, fileLength);
     }
     con.KillConnection("Patch downloaded.");
     Patcher.ProcessPatch(fileName, false);
 }