Options.cs 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. using CommandLine;
  2. using Ryujinx.Common.Configuration;
  3. using Ryujinx.HLE.HOS.SystemState;
  4. namespace Ryujinx.Headless.SDL2
  5. {
  6. public class Options
  7. {
  8. // Input
  9. [Option("input-profile-1", Required = false, HelpText = "Set the input profile in use for Player 1.")]
  10. public string InputProfile1Name { get; set; }
  11. [Option("input-profile-2", Required = false, HelpText = "Set the input profile in use for Player 2.")]
  12. public string InputProfile2Name { get; set; }
  13. [Option("input-profile-3", Required = false, HelpText = "Set the input profile in use for Player 3.")]
  14. public string InputProfile3Name { get; set; }
  15. [Option("input-profile-4", Required = false, HelpText = "Set the input profile in use for Player 4.")]
  16. public string InputProfile4Name { get; set; }
  17. [Option("input-profile-5", Required = false, HelpText = "Set the input profile in use for Player 5.")]
  18. public string InputProfile5Name { get; set; }
  19. [Option("input-profile-6", Required = false, HelpText = "Set the input profile in use for Player 5.")]
  20. public string InputProfile6Name { get; set; }
  21. [Option("input-profile-7", Required = false, HelpText = "Set the input profile in use for Player 7.")]
  22. public string InputProfile7Name { get; set; }
  23. [Option("input-profile-8", Required = false, HelpText = "Set the input profile in use for Player 8.")]
  24. public string InputProfile8Name { get; set; }
  25. [Option("input-profile-handheld", Required = false, HelpText = "Set the input profile in use for the Handheld Player.")]
  26. public string InputProfileHandheldName { get; set; }
  27. [Option("input-id-1", Required = false, HelpText = "Set the input id in use for Player 1.")]
  28. public string InputId1 { get; set; }
  29. [Option("input-id-2", Required = false, HelpText = "Set the input id in use for Player 2.")]
  30. public string InputId2 { get; set; }
  31. [Option("input-id-3", Required = false, HelpText = "Set the input id in use for Player 3.")]
  32. public string InputId3 { get; set; }
  33. [Option("input-id-4", Required = false, HelpText = "Set the input id in use for Player 4.")]
  34. public string InputId4 { get; set; }
  35. [Option("input-id-5", Required = false, HelpText = "Set the input id in use for Player 5.")]
  36. public string InputId5 { get; set; }
  37. [Option("input-id-6", Required = false, HelpText = "Set the input id in use for Player 6.")]
  38. public string InputId6 { get; set; }
  39. [Option("input-id-7", Required = false, HelpText = "Set the input id in use for Player 7.")]
  40. public string InputId7 { get; set; }
  41. [Option("input-id-8", Required = false, HelpText = "Set the input id in use for Player 8.")]
  42. public string InputId8 { get; set; }
  43. [Option("input-id-handheld", Required = false, HelpText = "Set the input id in use for the Handheld Player.")]
  44. public string InputIdHandheld { get; set; }
  45. [Option("enable-keyboard", Required = false, Default = false, HelpText = "Enable or disable keyboard support (Independent from controllers binding).")]
  46. public bool? EnableKeyboard { get; set; }
  47. [Option("enable-mouse", Required = false, Default = false, HelpText = "Enable or disable mouse support.")]
  48. public bool? EnableMouse { get; set; }
  49. [Option("list-input-profiles", Required = false, HelpText = "List inputs profiles.")]
  50. public bool? ListInputProfiles { get; set; }
  51. [Option("list-inputs-ids", Required = false, HelpText = "List inputs ids.")]
  52. public bool ListInputIds { get; set; }
  53. // System
  54. [Option("enable-ptc", Required = false, Default = true, HelpText = "Enables profiled translation cache persistency.")]
  55. public bool? EnablePtc { get; set; }
  56. [Option("enable-fs-integrity-checks", Required = false, Default = true, HelpText = "Enables integrity checks on Game content files.")]
  57. public bool? EnableFsIntegrityChecks { get; set; }
  58. [Option("fs-global-access-log-mode", Required = false, Default = 0, HelpText = "Enables FS access log output to the console.")]
  59. public int FsGlobalAccessLogMode { get; set; }
  60. [Option("enable-vsync", Required = false, Default = true, HelpText = "Enables Vertical Sync.")]
  61. public bool? EnableVsync { get; set; }
  62. [Option("enable-shader-cache", Required = false, Default = true, HelpText = "Enables Shader cache.")]
  63. public bool? EnableShaderCache { get; set; }
  64. [Option("enable-docked-mode", Required = false, Default = true, HelpText = "Enables Docked Mode.")]
  65. public bool? EnableDockedMode { get; set; }
  66. [Option("system-language", Required = false, Default = SystemLanguage.AmericanEnglish, HelpText = "Change System Language.")]
  67. public SystemLanguage SystemLanguage { get; set; }
  68. [Option("system-language", Required = false, Default = RegionCode.USA, HelpText = "Change System Region.")]
  69. public RegionCode SystemRegion { get; set; }
  70. [Option("system-timezone", Required = false, Default = "UTC", HelpText = "Change System TimeZone.")]
  71. public string SystemTimeZone { get; set; }
  72. [Option("system-time-offset", Required = false, Default = 0, HelpText = "Change System Time Offset in seconds.")]
  73. public long SystemTimeOffset { get; set; }
  74. [Option("memory-manager-mode", Required = false, Default = MemoryManagerMode.HostMappedUnsafe, HelpText = "The selected memory manager mode.")]
  75. public MemoryManagerMode MemoryManagerMode { get; set; }
  76. [Option("audio-volume", Required = false, Default = 1.0f, HelpText ="The audio level (0 to 1).")]
  77. public float AudioVolume { get; set; }
  78. // Logging
  79. [Option("enable-file-logging", Required = false, Default = false, HelpText = "Enables logging to a file on disk.")]
  80. public bool? EnableFileLog { get; set; }
  81. [Option("enable-debug-logs", Required = false, Default = false, HelpText = "Enables printing debug log messages.")]
  82. public bool? LoggingEnableDebug { get; set; }
  83. [Option("enable-stub-logs", Required = false, Default = true, HelpText = "Enables printing stub log messages.")]
  84. public bool? LoggingEnableStub { get; set; }
  85. [Option("enable-info-logs", Required = false, Default = true, HelpText = "Enables printing info log messages.")]
  86. public bool? LoggingEnableInfo { get; set; }
  87. [Option("enable-warning-logs", Required = false, Default = true, HelpText = "Enables printing warning log messages.")]
  88. public bool? LoggingEnableWarning { get; set; }
  89. [Option("enable-warning-logs", Required = false, Default = true, HelpText = "Enables printing error log messages.")]
  90. public bool? LoggingEnableError { get; set; }
  91. [Option("enable-guest-logs", Required = false, Default = true, HelpText = "Enables printing guest log messages.")]
  92. public bool? LoggingEnableGuest { get; set; }
  93. [Option("enable-fs-access-logs", Required = false, Default = false, HelpText = "Enables printing FS access log messages.")]
  94. public bool? LoggingEnableFsAccessLog { get; set; }
  95. [Option("graphics-debug-level", Required = false, Default = GraphicsDebugLevel.None, HelpText = "Change Graphics API debug log level.")]
  96. public GraphicsDebugLevel LoggingGraphicsDebugLevel { get; set; }
  97. // Graphics
  98. [Option("resolution-scale", Required = false, Default = 1, HelpText = "Resolution Scale. A floating point scale applied to applicable render targets.")]
  99. public float ResScale { get; set; }
  100. [Option("max-anisotropy", Required = false, Default = -1, HelpText = "Max Anisotropy. Values range from 0 - 16. Set to -1 to let the game decide.")]
  101. public float MaxAnisotropy { get; set; }
  102. [Option("aspect-ratio", Required = false, Default = AspectRatio.Fixed16x9, HelpText = "Aspect Ratio applied to the renderer window.")]
  103. public AspectRatio AspectRatio { get; set; }
  104. [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.")]
  105. public BackendThreading BackendThreading { get; set; }
  106. [Option("graphics-shaders-dump-path", Required = false, HelpText = "Dumps shaders in this local directory. (Developer only)")]
  107. public string GraphicsShadersDumpPath { get; set; }
  108. // Hacks
  109. [Option("expand-ram", Required = false, Default = false, HelpText = "Expands the RAM amount on the emulated system from 4GB to 6GB.")]
  110. public bool? ExpandRam { get; set; }
  111. [Option("ignore-missing-services", Required = false, Default = false, HelpText = "Enable ignoring missing services.")]
  112. public bool? IgnoreMissingServices { get; set; }
  113. // Values
  114. [Value(0, MetaName = "input", HelpText = "Input to load.", Required = true)]
  115. public string InputPath { get; set; }
  116. }
  117. }