mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-24 14:49:48 -06:00
Appveyor Ryujinx Updater (#1403)
Co-authored-by: Xpl0itR <xpl0itr@outlook.com>
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user