added update check button that runs ryujinx-updater

This commit is contained in:
Xpl0itR 2019-08-13 19:57:27 +01:00
parent 09313e2fc8
commit e7ee37cafb
No known key found for this signature in database
GPG key ID: 91798184109676AD
2 changed files with 21 additions and 0 deletions

View file

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

View file

@ -272,6 +272,21 @@
<object class="GtkMenu">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkMenuItem" id="CheckUpdates">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Check for Updates</property>
<property name="use_underline">True</property>
<signal name="activate" handler="Update_Pressed" swapped="no"/>
</object>
</child>
<child>
<object class="GtkSeparatorMenuItem">
<property name="visible">True</property>
<property name="can_focus">False</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="About">
<property name="visible">True</property>