private void UpdateAurora() { var dialog = MessageBox.Show($"Aurora v{_auroraVersionRegistry.AuroraVersions.Max()?.Version} is available. Download now? This is safe and won't affect your existing games.", "Download new Aurora version", MessageBoxButtons.YesNo); if (dialog != DialogResult.Yes) { return; } try { var thread = new Thread(() => { var aurora_files = Installer.GetLatestAuroraFiles(); var clean = new AuroraInstallation(_auroraVersionRegistry.CurrentAuroraVersion, Path.Combine(Program.AuroraLoaderExecutableDirectory, "Clean")); clean.UpdateAurora(aurora_files); }); thread.Start(); var progress = new FormProgress(thread) { Text = "Updating Aurora" }; progress.ShowDialog(); RefreshAuroraInstallData(); MessageBox.Show($"Update complete - you can now start new games using Aurora {_auroraVersionRegistry.CurrentAuroraVersion.Version}!"); } catch (Exception ecp) { Log.Error("Failed to update Aurora", ecp); Program.OpenBrowser(@"http://aurora2.pentarch.org/index.php?board=276.0"); } }
private void UpdateAurora() { try { var thread = new Thread(() => { var aurora_files = Installer.GetLatestAuroraFiles(); var clean = new AuroraInstallation(_auroraVersionRegistry.CurrentAuroraVersion, Path.Combine(Program.AuroraLoaderExecutableDirectory, "Clean")); clean.UpdateAurora(aurora_files); }); thread.Start(); var progress = new FormProgress(thread) { Text = "Updating Aurora" }; progress.ShowDialog(); RefreshAuroraInstallData(); } catch (Exception ecp) { Log.Error("Failed to update Aurora", ecp); Program.OpenBrowser(@"http://aurora2.pentarch.org/index.php?board=276.0"); } }