From e7ee37cafba913103d53e8d565b748c4e551c2c2 Mon Sep 17 00:00:00 2001 From: Xpl0itR Date: Tue, 13 Aug 2019 19:57:27 +0100 Subject: [PATCH] added update check button that runs ryujinx-updater --- Ryujinx/Ui/MainWindow.cs | 6 ++++++ Ryujinx/Ui/MainWindow.glade | 15 +++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/Ryujinx/Ui/MainWindow.cs b/Ryujinx/Ui/MainWindow.cs index f8958338c9..c504f78784 100644 --- a/Ryujinx/Ui/MainWindow.cs +++ b/Ryujinx/Ui/MainWindow.cs @@ -474,6 +474,12 @@ namespace Ryujinx.UI fc.Destroy(); } + private void Update_Pressed(object o, EventArgs args) + { + string ryuUpdater = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "RyuFS", "RyuUpdater.exe"); + Process.Start(new ProcessStartInfo(ryuUpdater, "/U") { UseShellExecute = true }); + } + private void About_Pressed(object o, EventArgs args) { AboutWindow AboutWin = new AboutWindow(); diff --git a/Ryujinx/Ui/MainWindow.glade b/Ryujinx/Ui/MainWindow.glade index 0a8f35bc06..2cdf887cbd 100644 --- a/Ryujinx/Ui/MainWindow.glade +++ b/Ryujinx/Ui/MainWindow.glade @@ -272,6 +272,21 @@ True False + + + True + False + Check for Updates + True + + + + + + True + False + + True