diff options
author | MelonSpeedruns <melonspeedruns@outlook.com> | 2020-09-29 16:05:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-29 22:05:25 +0200 |
commit | a15459366e7cd76ddb33eb882fd117f5aa79493d (patch) | |
tree | c6fac74835e172a3c6549ce47cc1adcb4ccbe7be /Ryujinx/Program.cs | |
parent | 4f65043ad77dcc37d9195b2a5e976d102421b82a (diff) |
Appveyor Ryujinx Updater (#1403)
Co-authored-by: Xpl0itR <xpl0itr@outlook.com>
Diffstat (limited to 'Ryujinx/Program.cs')
-rw-r--r-- | Ryujinx/Program.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Ryujinx/Program.cs b/Ryujinx/Program.cs index f8fb5599..280b5c36 100644 --- a/Ryujinx/Program.cs +++ b/Ryujinx/Program.cs @@ -10,6 +10,7 @@ using Ryujinx.Ui.Diagnostic; using System; using System.IO; using System.Reflection; +using System.Threading.Tasks; namespace Ryujinx { @@ -44,6 +45,9 @@ namespace Ryujinx } } + // Delete backup files after updating + Task.Run(Updater.CleanupUpdate); + Toolkit.Init(new ToolkitOptions { Backend = PlatformBackend.PreferNative, @@ -122,6 +126,11 @@ namespace Ryujinx mainWindow.LoadApplication(launchPath); } + if (ConfigurationState.Instance.CheckUpdatesOnStart.Value && Updater.CanUpdate(false)) + { + Updater.BeginParse(mainWindow, false); + } + Application.Run(); } @@ -167,4 +176,4 @@ namespace Ryujinx Logger.Shutdown(); } } -} +}
\ No newline at end of file |