Appveyor Ryujinx Updater (#1403)
Co-authored-by: Xpl0itR <xpl0itr@outlook.com>
This commit is contained in:
parent
4f65043ad7
commit
a15459366e
16 changed files with 685 additions and 61 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue