diff options
author | TSRBerry <20988865+TSRBerry@users.noreply.github.com> | 2022-11-13 00:36:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-12 20:36:36 -0300 |
commit | eebc39228db4663e03fa73306e725424f7ce1273 (patch) | |
tree | a0e231a860f41839af09b3c358630a086180b606 /Ryujinx/Modules/Updater/UpdateDialog.cs | |
parent | 9daf029f356898336de1ad0c63b6c36e261e4f9b (diff) |
UI: Allow overriding graphics backend + Move command line parser into a new class (#3707)1.1.343
* Ava: Keep command line args when restarting
* UI: Move common UI functions to ProgramHelper
Add command line option to override the configured graphics backend
* Ava: Add CleanupUpdate task back
* Remove unused usings
* Revert combining common UI functions
Rename ProgramHelper to CommandLineState
Move command line parsing to CommandLineState
* Rename CommandLineProfile to Profile
* Fix assigning the wrong array to Arguments
Diffstat (limited to 'Ryujinx/Modules/Updater/UpdateDialog.cs')
-rw-r--r-- | Ryujinx/Modules/Updater/UpdateDialog.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Ryujinx/Modules/Updater/UpdateDialog.cs b/Ryujinx/Modules/Updater/UpdateDialog.cs index cdf85427..cb71fafc 100644 --- a/Ryujinx/Modules/Updater/UpdateDialog.cs +++ b/Ryujinx/Modules/Updater/UpdateDialog.cs @@ -2,9 +2,9 @@ using Gdk; using Gtk; using Ryujinx.Ui; using Ryujinx.Ui.Common.Configuration; +using Ryujinx.Ui.Common.Helper; using System; using System.Diagnostics; -using System.Linq; using System.Reflection; namespace Ryujinx.Modules @@ -48,9 +48,8 @@ namespace Ryujinx.Modules { string ryuName = OperatingSystem.IsWindows() ? "Ryujinx.exe" : "Ryujinx"; string ryuExe = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, ryuName); - var ryuArg = Environment.GetCommandLineArgs().AsEnumerable().Skip(1); - Process.Start(ryuExe, ryuArg); + Process.Start(ryuExe, CommandLineState.Arguments); Environment.Exit(0); } @@ -81,4 +80,4 @@ namespace Ryujinx.Modules Dispose(); } } -} +}
\ No newline at end of file |