From 45bf443c0128f32e4dd7c5d4e5fb5169608a6087 Mon Sep 17 00:00:00 2001 From: Coxxs <58-coxxs@users.noreply.git.ryujinx.app> Date: Wed, 10 Sep 2025 11:43:50 -0500 Subject: [PATCH] Fix headless mode Fix the error `Error setting value to option 'gdb-stub-port': Check if Option or Value attribute values are set properly for the given type.` https://github.com/commandlineparser/commandline/issues/612 --- src/Ryujinx/Headless/Options.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx/Headless/Options.cs b/src/Ryujinx/Headless/Options.cs index 187c56b23..1346b58bb 100644 --- a/src/Ryujinx/Headless/Options.cs +++ b/src/Ryujinx/Headless/Options.cs @@ -390,7 +390,7 @@ namespace Ryujinx.Headless [Option("enable-gdb-stub", Required = false, Default = false, HelpText = "Enables the GDB stub so that a developer can attach a debugger to the emulated process.")] public bool EnableGdbStub { get; set; } - [Option("gdb-stub-port", Required = false, Default = 55555, HelpText = "Specifies which TCP port the GDB stub listens on.")] + [Option("gdb-stub-port", Required = false, Default = (ushort)55555, HelpText = "Specifies which TCP port the GDB stub listens on.")] public ushort GdbStubPort { get; set; } [Option("suspend-on-start", Required = false, Default = false, HelpText = "Suspend execution when starting an application.")]