Appveyor Ryujinx Updater (#1403)

Co-authored-by: Xpl0itR <xpl0itr@outlook.com>
This commit is contained in:
MelonSpeedruns 2020-09-29 16:05:25 -04:00 committed by GitHub
parent 4f65043ad7
commit a15459366e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 685 additions and 61 deletions

View file

@ -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();
}
}
}
}