From ad6ff6ce99619bb320cc7517768bca603f11a75c Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Sun, 22 Jan 2023 18:39:00 +0100 Subject: [PATCH] GUI: Add option to register file types (#4250) * Add FileAssociationHelper.cs * Add register file types option to gtk * Add register file types option to avalonia * Add Windows support to FileAssociationHelper.cs * linux: Add uninstall support for file types * Ignore .glade~ backup files * Rename Register/Unregister methods * gtk: Add manage file types submenu * ava: Add manage file types submenu * windows: Add uninstall support for file types * Don't invert uninstall condition (formatting change) Co-authored-by: gdkchan * Add IsTypesRegisteredWindows & Fix Windows install function * Add AreMimeTypesRegisteredLinux() * Fix wrong indention Co-authored-by: AcK77 Co-authored-by: gdkchan --- .gitignore | 3 + Ryujinx.Ava/Assets/Locales/en_US.json | 9 +- Ryujinx.Ava/Program.cs | 50 -- .../UI/ViewModels/MainWindowViewModel.cs | 5 + .../UI/Views/Main/MainMenuBarView.axaml | 9 +- .../UI/Views/Main/MainMenuBarView.axaml.cs | 28 ++ .../Helper/FileAssociationHelper.cs | 198 ++++++++ Ryujinx/Program.cs | 49 -- Ryujinx/Ui/MainWindow.cs | 28 +- Ryujinx/Ui/MainWindow.glade | 435 ++++++++++-------- 10 files changed, 506 insertions(+), 308 deletions(-) create mode 100644 Ryujinx.Ui.Common/Helper/FileAssociationHelper.cs diff --git a/.gitignore b/.gitignore index c24f90e342..37b419d073 100644 --- a/.gitignore +++ b/.gitignore @@ -170,3 +170,6 @@ launchSettings.json # NetCore Publishing Profiles PublishProfiles/ + +# Glade backup files +*.glade~ diff --git a/Ryujinx.Ava/Assets/Locales/en_US.json b/Ryujinx.Ava/Assets/Locales/en_US.json index 3d50967595..9bc6b58177 100644 --- a/Ryujinx.Ava/Assets/Locales/en_US.json +++ b/Ryujinx.Ava/Assets/Locales/en_US.json @@ -26,6 +26,9 @@ "MenuBarToolsInstallFirmware": "Install Firmware", "MenuBarFileToolsInstallFirmwareFromFile": "Install a firmware from XCI or ZIP", "MenuBarFileToolsInstallFirmwareFromDirectory": "Install a firmware from a directory", + "MenuBarToolsManageFileTypes": "Manage file types", + "MenuBarToolsInstallFileTypes": "Install file types", + "MenuBarToolsUninstallFileTypes": "Uninstall file types", "MenuBarHelp": "Help", "MenuBarHelpCheckForUpdates": "Check for Updates", "MenuBarHelpAbout": "About", @@ -339,6 +342,10 @@ "DialogFirmwareInstallEmbeddedSuccessMessage": "No installed firmware was found but Ryujinx was able to install firmware {0} from the provided game.\\nThe emulator will now start.", "DialogFirmwareNoFirmwareInstalledMessage": "No Firmware Installed", "DialogFirmwareInstalledMessage": "Firmware {0} was installed", + "DialogInstallFileTypesSuccessMessage": "Successfully installed file types!", + "DialogInstallFileTypesErrorMessage": "Failed to install file types.", + "DialogUninstallFileTypesSuccessMessage": "Successfully uninstalled file types!", + "DialogUninstallFileTypesErrorMessage": "Failed to uninstall file types.", "DialogOpenSettingsWindowLabel": "Open Settings Window", "DialogControllerAppletTitle": "Controller Applet", "DialogMessageDialogErrorExceptionMessage": "Error displaying Message Dialog: {0}", @@ -619,4 +626,4 @@ "UserProfilesRecoverEmptyList": "No profiles to recover", "UserEditorTitle" : "Edit User", "UserEditorTitleCreate" : "Create User" -} \ No newline at end of file +} diff --git a/Ryujinx.Ava/Program.cs b/Ryujinx.Ava/Program.cs index e64b6921ee..7f35c62a47 100644 --- a/Ryujinx.Ava/Program.cs +++ b/Ryujinx.Ava/Program.cs @@ -14,10 +14,8 @@ using Ryujinx.Ui.Common; using Ryujinx.Ui.Common.Configuration; using Ryujinx.Ui.Common.Helper; using System; -using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; -using System.Runtime.Versioning; using System.Threading.Tasks; namespace Ryujinx.Ava @@ -35,48 +33,6 @@ namespace Ryujinx.Ava private const uint MB_ICONWARNING = 0x30; - [SupportedOSPlatform("linux")] - static void RegisterMimeTypes() - { - if (ReleaseInformation.IsFlatHubBuild()) - { - return; - } - - string mimeDbPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "share", "mime"); - - if (!File.Exists(Path.Combine(mimeDbPath, "packages", "Ryujinx.xml"))) - { - string mimeTypesFile = Path.Combine(ReleaseInformation.GetBaseApplicationDirectory(), "mime", "Ryujinx.xml"); - using Process mimeProcess = new(); - - mimeProcess.StartInfo.FileName = "xdg-mime"; - mimeProcess.StartInfo.Arguments = $"install --novendor --mode user {mimeTypesFile}"; - - mimeProcess.Start(); - mimeProcess.WaitForExit(); - - if (mimeProcess.ExitCode != 0) - { - Logger.Error?.PrintMsg(LogClass.Application, $"Unable to install mime types. Make sure xdg-utils is installed. Process exited with code: {mimeProcess.ExitCode}"); - return; - } - - using Process updateMimeProcess = new(); - - updateMimeProcess.StartInfo.FileName = "update-mime-database"; - updateMimeProcess.StartInfo.Arguments = mimeDbPath; - - updateMimeProcess.Start(); - updateMimeProcess.WaitForExit(); - - if (updateMimeProcess.ExitCode != 0) - { - Logger.Error?.PrintMsg(LogClass.Application, $"Could not update local mime database. Process exited with code: {updateMimeProcess.ExitCode}"); - } - } - } - public static void Main(string[] args) { Version = ReleaseInformation.GetVersion(); @@ -139,12 +95,6 @@ namespace Ryujinx.Ava // Initialize the logger system. LoggerModule.Initialize(); - // Register mime types on linux. - if (OperatingSystem.IsLinux()) - { - RegisterMimeTypes(); - } - // Initialize Discord integration. DiscordIntegrationModule.Initialize(); diff --git a/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs b/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs index 6fea1844f3..a4ccac2da3 100644 --- a/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs +++ b/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs @@ -683,6 +683,11 @@ namespace Ryujinx.Ava.UI.ViewModels get => ConsoleHelper.SetConsoleWindowStateSupported; } + public bool ManageFileTypesVisible + { + get => FileAssociationHelper.IsTypeAssociationSupported; + } + public ObservableCollection Applications { get => _applications; diff --git a/Ryujinx.Ava/UI/Views/Main/MainMenuBarView.axaml b/Ryujinx.Ava/UI/Views/Main/MainMenuBarView.axaml index bd26561a7a..b1d768eadc 100644 --- a/Ryujinx.Ava/UI/Views/Main/MainMenuBarView.axaml +++ b/Ryujinx.Ava/UI/Views/Main/MainMenuBarView.axaml @@ -77,8 +77,7 @@ - - + + + + + - \ No newline at end of file + diff --git a/Ryujinx.Ava/UI/Views/Main/MainMenuBarView.axaml.cs b/Ryujinx.Ava/UI/Views/Main/MainMenuBarView.axaml.cs index 172ab6fcd2..11ecd0fc9f 100644 --- a/Ryujinx.Ava/UI/Views/Main/MainMenuBarView.axaml.cs +++ b/Ryujinx.Ava/UI/Views/Main/MainMenuBarView.axaml.cs @@ -3,6 +3,7 @@ using Avalonia.Controls; using Avalonia.Interactivity; using LibHac.FsSystem; using LibHac.Ncm; +using Ryujinx.Ava.Common.Locale; using Ryujinx.Ava.UI.Helpers; using Ryujinx.Ava.UI.ViewModels; using Ryujinx.Ava.UI.Windows; @@ -10,6 +11,7 @@ using Ryujinx.Common; using Ryujinx.Common.Utilities; using Ryujinx.HLE.HOS; using Ryujinx.Modules; +using Ryujinx.Ui.Common.Helper; using System; using System.Collections.Generic; using System.IO; @@ -163,6 +165,32 @@ namespace Ryujinx.Ava.UI.Views.Main } } + private async void InstallFileTypes_Click(object sender, RoutedEventArgs e) + { + if (FileAssociationHelper.Install()) + { + await ContentDialogHelper.CreateInfoDialog(LocaleManager.Instance[LocaleKeys.DialogInstallFileTypesSuccessMessage], + string.Empty, LocaleManager.Instance[LocaleKeys.InputDialogOk], string.Empty, string.Empty); + } + else + { + await ContentDialogHelper.CreateErrorDialog(LocaleManager.Instance[LocaleKeys.DialogInstallFileTypesErrorMessage]); + } + } + + private async void UninstallFileTypes_Click(object sender, RoutedEventArgs e) + { + if (FileAssociationHelper.Uninstall()) + { + await ContentDialogHelper.CreateInfoDialog(LocaleManager.Instance[LocaleKeys.DialogUninstallFileTypesSuccessMessage], + string.Empty, LocaleManager.Instance[LocaleKeys.InputDialogOk], string.Empty, string.Empty); + } + else + { + await ContentDialogHelper.CreateErrorDialog(LocaleManager.Instance[LocaleKeys.DialogUninstallFileTypesErrorMessage]); + } + } + public async void CheckForUpdates(object sender, RoutedEventArgs e) { if (Updater.CanUpdate(true)) diff --git a/Ryujinx.Ui.Common/Helper/FileAssociationHelper.cs b/Ryujinx.Ui.Common/Helper/FileAssociationHelper.cs new file mode 100644 index 0000000000..4f4b252457 --- /dev/null +++ b/Ryujinx.Ui.Common/Helper/FileAssociationHelper.cs @@ -0,0 +1,198 @@ +using Microsoft.Win32; +using Ryujinx.Common; +using Ryujinx.Common.Logging; +using System; +using System.Diagnostics; +using System.IO; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; + +namespace Ryujinx.Ui.Common.Helper +{ + public static partial class FileAssociationHelper + { + private static string[] _fileExtensions = new string[] { ".nca", ".nro", ".nso", ".nsp", ".xci" }; + + [SupportedOSPlatform("linux")] + private static string _mimeDbPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "share", "mime"); + + private const int SHCNE_ASSOCCHANGED = 0x8000000; + private const int SHCNF_FLUSH = 0x1000; + + [LibraryImport("shell32.dll", SetLastError = true)] + public static partial void SHChangeNotify(uint wEventId, uint uFlags, IntPtr dwItem1, IntPtr dwItem2); + + public static bool IsTypeAssociationSupported => (OperatingSystem.IsLinux() || OperatingSystem.IsWindows()) && !ReleaseInformation.IsFlatHubBuild(); + + [SupportedOSPlatform("linux")] + private static bool AreMimeTypesRegisteredLinux() => File.Exists(Path.Combine(_mimeDbPath, "packages", "Ryujinx.xml")); + + [SupportedOSPlatform("linux")] + private static bool InstallLinuxMimeTypes(bool uninstall = false) + { + string installKeyword = uninstall ? "uninstall" : "install"; + + if (!AreMimeTypesRegisteredLinux()) + { + string mimeTypesFile = Path.Combine(ReleaseInformation.GetBaseApplicationDirectory(), "mime", "Ryujinx.xml"); + string additionalArgs = !uninstall ? "--novendor" : ""; + + using Process mimeProcess = new(); + + mimeProcess.StartInfo.FileName = "xdg-mime"; + mimeProcess.StartInfo.Arguments = $"{installKeyword} {additionalArgs} --mode user {mimeTypesFile}"; + + mimeProcess.Start(); + mimeProcess.WaitForExit(); + + if (mimeProcess.ExitCode != 0) + { + Logger.Error?.PrintMsg(LogClass.Application, $"Unable to {installKeyword} mime types. Make sure xdg-utils is installed. Process exited with code: {mimeProcess.ExitCode}"); + + return false; + } + + using Process updateMimeProcess = new(); + + updateMimeProcess.StartInfo.FileName = "update-mime-database"; + updateMimeProcess.StartInfo.Arguments = _mimeDbPath; + + updateMimeProcess.Start(); + updateMimeProcess.WaitForExit(); + + if (updateMimeProcess.ExitCode != 0) + { + Logger.Error?.PrintMsg(LogClass.Application, $"Could not update local mime database. Process exited with code: {updateMimeProcess.ExitCode}"); + } + } + + return true; + } + + [SupportedOSPlatform("windows")] + private static bool AreMimeTypesRegisteredWindows() + { + static bool CheckRegistering(string ext) + { + RegistryKey key = Registry.CurrentUser.OpenSubKey(@$"Software\Classes\{ext}"); + + if (key is null) + { + return false; + } + + key.OpenSubKey(@"shell\open\command"); + + string keyValue = (string)key.GetValue(""); + + return keyValue is not null && (keyValue.Contains("Ryujinx") || keyValue.Contains(AppDomain.CurrentDomain.FriendlyName)); + } + + bool registered = false; + + foreach (string ext in _fileExtensions) + { + registered |= CheckRegistering(ext); + } + + return registered; + } + + [SupportedOSPlatform("windows")] + private static bool InstallWindowsMimeTypes(bool uninstall = false) + { + static bool RegisterExtension(string ext, bool uninstall = false) + { + string keyString = @$"Software\Classes\{ext}"; + + if (uninstall) + { + if (!AreMimeTypesRegisteredWindows()) + { + return false; + } + + Registry.CurrentUser.DeleteSubKeyTree(keyString); + } + else + { + RegistryKey key = Registry.CurrentUser.CreateSubKey(keyString); + if (key is null) + { + return false; + } + + key.CreateSubKey(@"shell\open\command"); + + key.SetValue("", $"\"{Environment.ProcessPath}\" \"%1\""); + key.Close(); + } + + // Notify Explorer the file association has been changed. + SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_FLUSH, IntPtr.Zero, IntPtr.Zero); + + return true; + } + + bool registered = false; + + foreach (string ext in _fileExtensions) + { + registered |= RegisterExtension(ext, uninstall); + } + + return registered; + } + + public static bool AreMimeTypesRegistered() + { + if (OperatingSystem.IsLinux()) + { + return AreMimeTypesRegisteredLinux(); + } + + if (OperatingSystem.IsWindows()) + { + return AreMimeTypesRegisteredWindows(); + } + + // TODO: Add macOS support. + + return false; + } + + public static bool Install() + { + if (OperatingSystem.IsLinux()) + { + return InstallLinuxMimeTypes(); + } + + if (OperatingSystem.IsWindows()) + { + return InstallWindowsMimeTypes(); + } + + // TODO: Add macOS support. + + return false; + } + + public static bool Uninstall() + { + if (OperatingSystem.IsLinux()) + { + return InstallLinuxMimeTypes(true); + } + + if (OperatingSystem.IsWindows()) + { + return InstallWindowsMimeTypes(true); + } + + // TODO: Add macOS support. + + return false; + } + } +} \ No newline at end of file diff --git a/Ryujinx/Program.cs b/Ryujinx/Program.cs index 56352a4ced..ace8b87f97 100644 --- a/Ryujinx/Program.cs +++ b/Ryujinx/Program.cs @@ -18,7 +18,6 @@ using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; -using System.Runtime.Versioning; using System.Threading.Tasks; namespace Ryujinx @@ -73,48 +72,6 @@ namespace Ryujinx } } - [SupportedOSPlatform("linux")] - static void RegisterMimeTypes() - { - if (ReleaseInformation.IsFlatHubBuild()) - { - return; - } - - string mimeDbPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "share", "mime"); - - if (!File.Exists(Path.Combine(mimeDbPath, "packages", "Ryujinx.xml"))) - { - string mimeTypesFile = Path.Combine(ReleaseInformation.GetBaseApplicationDirectory(), "mime", "Ryujinx.xml"); - using Process mimeProcess = new(); - - mimeProcess.StartInfo.FileName = "xdg-mime"; - mimeProcess.StartInfo.Arguments = $"install --novendor --mode user {mimeTypesFile}"; - - mimeProcess.Start(); - mimeProcess.WaitForExit(); - - if (mimeProcess.ExitCode != 0) - { - Logger.Error?.PrintMsg(LogClass.Application, $"Unable to install mime types. Make sure xdg-utils is installed. Process exited with code: {mimeProcess.ExitCode}"); - return; - } - - using Process updateMimeProcess = new(); - - updateMimeProcess.StartInfo.FileName = "update-mime-database"; - updateMimeProcess.StartInfo.Arguments = mimeDbPath; - - updateMimeProcess.Start(); - updateMimeProcess.WaitForExit(); - - if (updateMimeProcess.ExitCode != 0) - { - Logger.Error?.PrintMsg(LogClass.Application, $"Could not update local mime database. Process exited with code: {updateMimeProcess.ExitCode}"); - } - } - } - static void Main(string[] args) { Version = ReleaseInformation.GetVersion(); @@ -189,12 +146,6 @@ namespace Ryujinx // Initialize the logger system. LoggerModule.Initialize(); - // Register mime types on linux. - if (OperatingSystem.IsLinux()) - { - RegisterMimeTypes(); - } - // Initialize Discord integration. DiscordIntegrationModule.Initialize(); diff --git a/Ryujinx/Ui/MainWindow.cs b/Ryujinx/Ui/MainWindow.cs index 688e2f522e..53a97fb9f6 100644 --- a/Ryujinx/Ui/MainWindow.cs +++ b/Ryujinx/Ui/MainWindow.cs @@ -44,7 +44,6 @@ using System.IO; using System.Reflection; using System.Threading; using System.Threading.Tasks; - using GUI = Gtk.Builder.ObjectAttribute; using ShaderCacheLoadingState = Ryujinx.Graphics.Gpu.Shader.ShaderCacheState; @@ -109,6 +108,7 @@ namespace Ryujinx.Ui [GUI] CheckMenuItem _favToggle; [GUI] MenuItem _firmwareInstallDirectory; [GUI] MenuItem _firmwareInstallFile; + [GUI] MenuItem _fileTypesSubMenu; [GUI] Label _fifoStatus; [GUI] CheckMenuItem _iconToggle; [GUI] CheckMenuItem _developerToggle; @@ -220,6 +220,8 @@ namespace Ryujinx.Ui _pauseEmulation.Sensitive = false; _resumeEmulation.Sensitive = false; + _fileTypesSubMenu.Visible = FileAssociationHelper.IsTypeAssociationSupported; + if (ConfigurationState.Instance.Ui.GuiColumns.FavColumn) _favToggle.Active = true; if (ConfigurationState.Instance.Ui.GuiColumns.IconColumn) _iconToggle.Active = true; if (ConfigurationState.Instance.Ui.GuiColumns.AppColumn) _appToggle.Active = true; @@ -1500,6 +1502,30 @@ namespace Ryujinx.Ui }); } + private void InstallFileTypes_Pressed(object sender, EventArgs e) + { + if (FileAssociationHelper.Install()) + { + GtkDialog.CreateInfoDialog("Install file types", "File types successfully installed!"); + } + else + { + GtkDialog.CreateErrorDialog("Failed to install file types."); + } + } + + private void UninstallFileTypes_Pressed(object sender, EventArgs e) + { + if (FileAssociationHelper.Uninstall()) + { + GtkDialog.CreateInfoDialog("Uninstall file types", "File types successfully uninstalled!"); + } + else + { + GtkDialog.CreateErrorDialog("Failed to uninstall file types."); + } + } + private void HandleRelaunch() { if (_userChannelPersistence.PreviousIndex != -1 && _userChannelPersistence.ShouldRestart) diff --git a/Ryujinx/Ui/MainWindow.glade b/Ryujinx/Ui/MainWindow.glade index 405bc43fc7..8ffbb97e53 100644 --- a/Ryujinx/Ui/MainWindow.glade +++ b/Ryujinx/Ui/MainWindow.glade @@ -1,67 +1,67 @@ - + - False + False Ryujinx - center + center True - False + False vertical True - False + False True - False + False File - True + True True - False + False True - False - Open a file explorer to choose a Switch compatible file to load + False + Open a file explorer to choose a Switch compatible file to load Load Application from File - True + True True - False - Open a file explorer to choose a Switch compatible, unpacked application to load + False + Open a file explorer to choose a Switch compatible, unpacked application to load Load Unpacked Game - True + True True - False + False Load Applet - True + True True - False + False True - False - Open Mii Editor Applet in Standalone mode + False + Open Mii Editor Applet in Standalone mode Mii Editor - True + True @@ -72,42 +72,42 @@ True - False + False True - False - Open Ryujinx filesystem folder + False + Open Ryujinx filesystem folder Open Ryujinx Folder - True + True True - False - Opens the folder where logs are written to. + False + Opens the folder where logs are written to. Open Logs Folder - True + True True - False + False True - False - Exit Ryujinx + False + Exit Ryujinx Exit - True + True @@ -118,144 +118,144 @@ True - False + False Options - True + True True - False + False True - False + False Enter Fullscreen - True + True True - False + False Start Games in Fullscreen Mode - True + True True - False + False Show Log Console - True + True True - False + False True - False - Select which GUI columns to enable + False + Select which GUI columns to enable Enable GUI Columns - True + True True - False + False True - False - Enable or Disable Favorite Games Column in the game list + False + Enable or Disable Favorite Games Column in the game list Enable Favorite Games Column - True + True True - False - Enable or Disable Icon Column in the game list + False + Enable or Disable Icon Column in the game list Enable Icon Column - True + True True - False - Enable or Disable Title Name/ID Column in the game list + False + Enable or Disable Title Name/ID Column in the game list Enable Title Name/ID Column - True + True True - False - Enable or Disable Developer Column in the game list + False + Enable or Disable Developer Column in the game list Enable Developer Column - True + True True - False - Enable or Disable Version Column in the game list + False + Enable or Disable Version Column in the game list Enable Version Column - True + True True - False - Enable or Disable Time Played Column in the game list + False + Enable or Disable Time Played Column in the game list Enable Time Played Column - True + True True - False - Enable or Disable Last Played Column in the game list + False + Enable or Disable Last Played Column in the game list Enable Last Played Column - True + True True - False - Enable or Disable file extension column in the game list + False + Enable or Disable file extension column in the game list Enable File Ext Column - True + True True - False - Enable or Disable File Size Column in the game list + False + Enable or Disable File Size Column in the game list Enable File Size Column - True + True True - False - Enable or Disable Path Column in the game list + False + Enable or Disable Path Column in the game list Enable Path Column - True + True @@ -265,26 +265,26 @@ True - False + False True - False - Open settings window + False + Open settings window Settings - True + True True - False - Open User Profiles Manager window + False + Open User Profiles Manager window Manage User Profiles - True + True @@ -295,74 +295,74 @@ True - False + False Actions - True + True True - False + False True - False - Pause emulation + False + Pause emulation Pause Emulation - True + True True - False - Resume emulation + False + Resume emulation Resume Emulation - True + True True - False - Stop emulation of the current game and return to game selection + False + Stop emulation of the current game and return to game selection Stop Emulation - True + True True - False + False True - False - Simulate a Wake-up Message + False + Simulate a Wake-up Message Simulate Wake-up Message - True + True True - False - Scan an Amiibo + False + Scan an Amiibo Scan an Amiibo - True + True True - False - Take a screenshot + False + Take a screenshot Take Screenshot @@ -370,16 +370,16 @@ True - False + False Hide UI (SHOWUIKEY to show) - True + True True - False + False Manage Cheats @@ -391,38 +391,38 @@ True - False + False Tools - True + True True - False + False True - False + False Install Firmware - True + True True - False + False True - False + False Install a firmware from XCI or ZIP - True + True True - False + False Install a firmware from a directory - True + True @@ -430,6 +430,36 @@ + + + True + False + Manage file types + True + + + True + False + + + True + False + Install file types + + + + + + True + False + Uninstall file types + + + + + + + @@ -437,36 +467,36 @@ True - False + False Help - True + True True - False + False True - False - Check for updates to Ryujinx + False + Check for updates to Ryujinx Check for Updates - True + True True - False + False True - False - Open about window + False + Open about window About - True + True @@ -484,24 +514,24 @@ True - False + False vertical True - False + False vertical True - True - in + True + in True - True + True True - True + True @@ -524,24 +554,24 @@ - 19 + 19 True - False + False True - False + False True - False - 5 + False + 5 RefreshList True - False + False gtk-refresh @@ -555,11 +585,11 @@ True - False - 10 - 5 - 2 - 2 + False + 10 + 5 + 2 + 2 0/0 Games Loaded @@ -570,13 +600,13 @@ - 200 + 200 True - False + False start - 10 - 5 - 6 + 10 + 5 + 6 True @@ -594,19 +624,19 @@ True - False + False True - False + False True - False + False start - 5 - 5 + 5 + 5 VSync @@ -620,7 +650,7 @@ True - False + False False @@ -631,15 +661,15 @@ True - False + False True - False + False start - 5 - 5 + 5 + 5 @@ -652,7 +682,7 @@ True - False + False False @@ -663,15 +693,15 @@ True - False + False True - False + False start - 5 - 5 + 5 + 5 @@ -684,7 +714,7 @@ True - False + False False @@ -695,15 +725,15 @@ True - False + False True - False + False start - 5 - 5 + 5 + 5 @@ -716,7 +746,7 @@ True - False + False False @@ -727,10 +757,10 @@ True - False + False start - 5 - 5 + 5 + 5 False @@ -741,7 +771,7 @@ True - False + False False @@ -752,10 +782,10 @@ True - False + False start - 5 - 5 + 5 + 5 False @@ -766,7 +796,7 @@ True - False + False False @@ -777,10 +807,10 @@ True - False + False start - 5 - 5 + 5 + 5 False @@ -791,7 +821,7 @@ True - False + False False @@ -802,10 +832,10 @@ True - False + False start - 5 - 5 + 5 + 5 True @@ -823,12 +853,12 @@ True - False - 5 + False + 5 True - False + False System Version @@ -839,16 +869,16 @@ - 50 + 50 True - False - 5 - 5 + False + 5 + 5 False True - end + end 1 @@ -856,15 +886,15 @@ False True - end + end 4 - False - 5 - 5 + False + 5 + 5 0/0 @@ -875,11 +905,11 @@ - 200 - False - 5 - 5 - 6 + 200 + False + 5 + 5 + 6 False @@ -903,8 +933,5 @@ - - -