using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using PatcherShared; namespace SelfPatcher { public class Program { static void Main(string[] args) { if (args.Count() < 3) return; Console.Write("Appling patch..."); Thread.Sleep(250); PatchFile file = PatchFile.Read(args[0]); file.Apply(args[1]); Process launcher = new Process {StartInfo = {FileName = args[3]}}; launcher.Start(); } } }