private void invokeUpdate() { Directory.CreateDirectory("temp"); ConfigXML.writeLocal <UpdateXML>(update, "temp\\update.xml"); foreach (string newPath in Directory.GetFiles("libs", "*.*")) { File.Copy(newPath, newPath.Replace("libs", "temp"), true); } Restarter.restart("update"); }
private void bw_extractUpdate_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e) { Restarter.restart("cleanup"); }
void ReceiveRestartGame() { restarter.restart(); }