aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Headless.SDL2/Options.cs
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2023-01-09 04:55:37 +0100
committerGitHub <noreply@github.com>2023-01-09 04:55:37 +0100
commit51b3953cfc3b440aa0b7b1b06d33626426e54556 (patch)
treeb6bc77a46d8d0b2d635ce135ac822d188787344c /Ryujinx.Headless.SDL2/Options.cs
parent610eecc1c1fec2203fff1ebd71cd10798fbcc05a (diff)
[Headless] Add missing arguments & Fix typos (#4193)
* headless: Fix typos in command line options * Remove nullable from command line options Add EnableMacroHLE option Add HideCursorOnIdle option * headless: Adjust enable-ptc help text * headless: Use switch statement instead of if-else chain * headless: Improve formatting for long constructors * headless: Remove discards from SDL_ShowCursor() * headless: Add window icon * Fix hiding cursor on idle At least on Wayland, SDL2 doesn't produce any mouse motion events. * Add new command line args: BaseDataDir and UserProfile * headless: Read icon from embedded resource * headless: Skip SetWindowIcon() on Windows if dll isn't present * headless: Fix division by zero * headless: Fix command line options not working correctly * headless: Fix crash when viewing command line options * headless: Load window icon bmp from memory * Add comment to the workaround for SDL_LoadBMP_RW * headless: Enable logging to file by default * headless: Add 3 options for --hide-cursor Replaces --disable-hide-cursor-on-idle
Diffstat (limited to 'Ryujinx.Headless.SDL2/Options.cs')
-rw-r--r--Ryujinx.Headless.SDL2/Options.cs82
1 files changed, 48 insertions, 34 deletions
diff --git a/Ryujinx.Headless.SDL2/Options.cs b/Ryujinx.Headless.SDL2/Options.cs
index 209ce228..49233bce 100644
--- a/Ryujinx.Headless.SDL2/Options.cs
+++ b/Ryujinx.Headless.SDL2/Options.cs
@@ -6,6 +6,14 @@ namespace Ryujinx.Headless.SDL2
{
public class Options
{
+ // General
+
+ [Option("root-data-dir", Required = false, HelpText = "Set the custom folder path for Ryujinx data.")]
+ public string BaseDataDir { get; set; }
+
+ [Option("profile", Required = false, HelpText = "Set the user profile to launch the game with.")]
+ public string UserProfile { get; set; }
+
// Input
[Option("input-profile-1", Required = false, HelpText = "Set the input profile in use for Player 1.")]
@@ -23,7 +31,7 @@ namespace Ryujinx.Headless.SDL2
[Option("input-profile-5", Required = false, HelpText = "Set the input profile in use for Player 5.")]
public string InputProfile5Name { get; set; }
- [Option("input-profile-6", Required = false, HelpText = "Set the input profile in use for Player 5.")]
+ [Option("input-profile-6", Required = false, HelpText = "Set the input profile in use for Player 6.")]
public string InputProfile6Name { get; set; }
[Option("input-profile-7", Required = false, HelpText = "Set the input profile in use for Player 7.")]
@@ -63,42 +71,45 @@ namespace Ryujinx.Headless.SDL2
public string InputIdHandheld { get; set; }
[Option("enable-keyboard", Required = false, Default = false, HelpText = "Enable or disable keyboard support (Independent from controllers binding).")]
- public bool? EnableKeyboard { get; set; }
+ public bool EnableKeyboard { get; set; }
[Option("enable-mouse", Required = false, Default = false, HelpText = "Enable or disable mouse support.")]
- public bool? EnableMouse { get; set; }
+ public bool EnableMouse { get; set; }
+
+ [Option("hide-cursor", Required = false, Default = HideCursor.OnIdle, HelpText = "Change when the cursor gets hidden.")]
+ public HideCursor HideCursor { get; set; }
[Option("list-input-profiles", Required = false, HelpText = "List inputs profiles.")]
- public bool? ListInputProfiles { get; set; }
+ public bool ListInputProfiles { get; set; }
[Option("list-inputs-ids", Required = false, HelpText = "List inputs ids.")]
public bool ListInputIds { get; set; }
// System
- [Option("enable-ptc", Required = false, Default = true, HelpText = "Enables profiled translation cache persistency.")]
- public bool? EnablePtc { get; set; }
+ [Option("disable-ptc", Required = false, HelpText = "Disables profiled persistent translation cache.")]
+ public bool DisablePtc { get; set; }
[Option("enable-internet-connection", Required = false, Default = false, HelpText = "Enables guest Internet connection.")]
- public bool? EnableInternetAccess { get; set; }
+ public bool EnableInternetAccess { get; set; }
- [Option("enable-fs-integrity-checks", Required = false, Default = true, HelpText = "Enables integrity checks on Game content files.")]
- public bool? EnableFsIntegrityChecks { get; set; }
+ [Option("disable-fs-integrity-checks", Required = false, HelpText = "Disables integrity checks on Game content files.")]
+ public bool DisableFsIntegrityChecks { get; set; }
[Option("fs-global-access-log-mode", Required = false, Default = 0, HelpText = "Enables FS access log output to the console.")]
public int FsGlobalAccessLogMode { get; set; }
- [Option("enable-vsync", Required = false, Default = true, HelpText = "Enables Vertical Sync.")]
- public bool? EnableVsync { get; set; }
+ [Option("disable-vsync", Required = false, HelpText = "Disables Vertical Sync.")]
+ public bool DisableVsync { get; set; }
- [Option("enable-shader-cache", Required = false, Default = true, HelpText = "Enables Shader cache.")]
- public bool? EnableShaderCache { get; set; }
+ [Option("disable-shader-cache", Required = false, HelpText = "Disables Shader cache.")]
+ public bool DisableShaderCache { get; set; }
[Option("enable-texture-recompression", Required = false, Default = false, HelpText = "Enables Texture recompression.")]
- public bool? EnableTextureRecompression { get; set; }
+ public bool EnableTextureRecompression { get; set; }
- [Option("enable-docked-mode", Required = false, Default = true, HelpText = "Enables Docked Mode.")]
- public bool? EnableDockedMode { get; set; }
+ [Option("disable-docked-mode", Required = false, HelpText = "Disables Docked Mode.")]
+ public bool DisableDockedMode { get; set; }
[Option("system-language", Required = false, Default = SystemLanguage.AmericanEnglish, HelpText = "Change System Language.")]
public SystemLanguage SystemLanguage { get; set; }
@@ -120,32 +131,32 @@ namespace Ryujinx.Headless.SDL2
// Logging
- [Option("enable-file-logging", Required = false, Default = false, HelpText = "Enables logging to a file on disk.")]
- public bool? EnableFileLog { get; set; }
+ [Option("disable-file-logging", Required = false, Default = false, HelpText = "Disables logging to a file on disk.")]
+ public bool DisableFileLog { get; set; }
[Option("enable-debug-logs", Required = false, Default = false, HelpText = "Enables printing debug log messages.")]
- public bool? LoggingEnableDebug { get; set; }
+ public bool LoggingEnableDebug { get; set; }
- [Option("enable-stub-logs", Required = false, Default = true, HelpText = "Enables printing stub log messages.")]
- public bool? LoggingEnableStub { get; set; }
+ [Option("disable-stub-logs", Required = false, HelpText = "Disables printing stub log messages.")]
+ public bool LoggingDisableStub { get; set; }
- [Option("enable-info-logs", Required = false, Default = true, HelpText = "Enables printing info log messages.")]
- public bool? LoggingEnableInfo { get; set; }
+ [Option("disable-info-logs", Required = false, HelpText = "Disables printing info log messages.")]
+ public bool LoggingDisableInfo { get; set; }
- [Option("enable-warning-logs", Required = false, Default = true, HelpText = "Enables printing warning log messages.")]
- public bool? LoggingEnableWarning { get; set; }
+ [Option("disable-warning-logs", Required = false, HelpText = "Disables printing warning log messages.")]
+ public bool LoggingDisableWarning { get; set; }
- [Option("enable-error-logs", Required = false, Default = true, HelpText = "Enables printing error log messages.")]
- public bool? LoggingEnableError { get; set; }
+ [Option("disable-error-logs", Required = false, HelpText = "Disables printing error log messages.")]
+ public bool LoggingEnableError { get; set; }
[Option("enable-trace-logs", Required = false, Default = false, HelpText = "Enables printing trace log messages.")]
- public bool? LoggingEnableTrace { get; set; }
+ public bool LoggingEnableTrace { get; set; }
- [Option("enable-guest-logs", Required = false, Default = true, HelpText = "Enables printing guest log messages.")]
- public bool? LoggingEnableGuest { get; set; }
+ [Option("disable-guest-logs", Required = false, HelpText = "Disables printing guest log messages.")]
+ public bool LoggingDisableGuest { get; set; }
[Option("enable-fs-access-logs", Required = false, Default = false, HelpText = "Enables printing FS access log messages.")]
- public bool? LoggingEnableFsAccessLog { get; set; }
+ public bool LoggingEnableFsAccessLog { get; set; }
[Option("graphics-debug-level", Required = false, Default = GraphicsDebugLevel.None, HelpText = "Change Graphics API debug log level.")]
public GraphicsDebugLevel LoggingGraphicsDebugLevel { get; set; }
@@ -164,6 +175,9 @@ namespace Ryujinx.Headless.SDL2
[Option("backend-threading", Required = false, Default = BackendThreading.Auto, HelpText = "Whether or not backend threading is enabled. The \"Auto\" setting will determine whether threading should be enabled at runtime.")]
public BackendThreading BackendThreading { get; set; }
+ [Option("disable-macro-hle", Required= false, HelpText = "Disables high-level emulation of Macro code. Leaving this enabled improves performance but may cause graphical glitches in some games.")]
+ public bool DisableMacroHLE { get; set; }
+
[Option("graphics-shaders-dump-path", Required = false, HelpText = "Dumps shaders in this local directory. (Developer only)")]
public string GraphicsShadersDumpPath { get; set; }
@@ -176,14 +190,14 @@ namespace Ryujinx.Headless.SDL2
// Hacks
[Option("expand-ram", Required = false, Default = false, HelpText = "Expands the RAM amount on the emulated system from 4GiB to 6GiB.")]
- public bool? ExpandRam { get; set; }
+ public bool ExpandRam { get; set; }
[Option("ignore-missing-services", Required = false, Default = false, HelpText = "Enable ignoring missing services.")]
- public bool? IgnoreMissingServices { get; set; }
+ public bool IgnoreMissingServices { get; set; }
// Values
[Value(0, MetaName = "input", HelpText = "Input to load.", Required = true)]
public string InputPath { get; set; }
}
-}
+} \ No newline at end of file