diff options
| author | Mary <me@thog.eu> | 2020-11-06 19:46:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-06 19:46:22 +0100 |
| commit | 61e67b64eaeecf094ba51eda2416c741cd3284d3 (patch) | |
| tree | a67647f3d33f136e9502b96c1198cfafb79450c8 | |
| parent | ce9105a13052cd3ec1d7c10b9c9cc18f5ecc671f (diff) | |
updater: Ignore first commandline argument when passing commandline to updated binary (#1674)
Fix a regression caused by #1643.
| -rw-r--r-- | Ryujinx/Updater/UpdateDialog.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Ryujinx/Updater/UpdateDialog.cs b/Ryujinx/Updater/UpdateDialog.cs index 768479d9..7c2d32d6 100644 --- a/Ryujinx/Updater/UpdateDialog.cs +++ b/Ryujinx/Updater/UpdateDialog.cs @@ -3,6 +3,7 @@ using Gtk; using Mono.Unix; using System; using System.Diagnostics; +using System.Linq; using System.Runtime.InteropServices; namespace Ryujinx.Ui @@ -45,7 +46,7 @@ namespace Ryujinx.Ui { string ryuName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "Ryujinx.exe" : "Ryujinx"; string ryuExe = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, ryuName); - string ryuArg = String.Join(" ", Environment.GetCommandLineArgs()); + string ryuArg = String.Join(" ", Environment.GetCommandLineArgs().AsEnumerable().Skip(1).ToArray()); if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { |
