diff options
Diffstat (limited to 'src/common/settings.h')
| -rw-r--r-- | src/common/settings.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/common/settings.h b/src/common/settings.h index bf83186f5..ce1bc647d 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -31,9 +31,9 @@ enum class GPUAccuracy : u32 { | |||
| 31 | }; | 31 | }; |
| 32 | 32 | ||
| 33 | enum class CPUAccuracy : u32 { | 33 | enum class CPUAccuracy : u32 { |
| 34 | Accurate = 0, | 34 | Auto = 0, |
| 35 | Unsafe = 1, | 35 | Accurate = 1, |
| 36 | DebugMode = 2, | 36 | Unsafe = 2, |
| 37 | }; | 37 | }; |
| 38 | 38 | ||
| 39 | /** The BasicSetting class is a simple resource manager. It defines a label and default value | 39 | /** The BasicSetting class is a simple resource manager. It defines a label and default value |
| @@ -278,13 +278,16 @@ struct Values { | |||
| 278 | BasicSetting<std::string> sink_id{"auto", "output_engine"}; | 278 | BasicSetting<std::string> sink_id{"auto", "output_engine"}; |
| 279 | BasicSetting<bool> audio_muted{false, "audio_muted"}; | 279 | BasicSetting<bool> audio_muted{false, "audio_muted"}; |
| 280 | Setting<bool> enable_audio_stretching{true, "enable_audio_stretching"}; | 280 | Setting<bool> enable_audio_stretching{true, "enable_audio_stretching"}; |
| 281 | Setting<float> volume{1.0f, "volume"}; | 281 | Setting<u8> volume{100, "volume"}; |
| 282 | 282 | ||
| 283 | // Core | 283 | // Core |
| 284 | Setting<bool> use_multi_core{true, "use_multi_core"}; | 284 | Setting<bool> use_multi_core{true, "use_multi_core"}; |
| 285 | 285 | ||
| 286 | // Cpu | 286 | // Cpu |
| 287 | Setting<CPUAccuracy> cpu_accuracy{CPUAccuracy::Accurate, "cpu_accuracy"}; | 287 | Setting<CPUAccuracy> cpu_accuracy{CPUAccuracy::Auto, "cpu_accuracy"}; |
| 288 | // TODO: remove cpu_accuracy_first_time, migration setting added 8 July 2021 | ||
| 289 | BasicSetting<bool> cpu_accuracy_first_time{true, "cpu_accuracy_first_time"}; | ||
| 290 | BasicSetting<bool> cpu_debug_mode{false, "cpu_debug_mode"}; | ||
| 288 | 291 | ||
| 289 | BasicSetting<bool> cpuopt_page_tables{true, "cpuopt_page_tables"}; | 292 | BasicSetting<bool> cpuopt_page_tables{true, "cpuopt_page_tables"}; |
| 290 | BasicSetting<bool> cpuopt_block_linking{true, "cpuopt_block_linking"}; | 293 | BasicSetting<bool> cpuopt_block_linking{true, "cpuopt_block_linking"}; |
| @@ -327,15 +330,15 @@ struct Values { | |||
| 327 | Setting<bool> use_nvdec_emulation{true, "use_nvdec_emulation"}; | 330 | Setting<bool> use_nvdec_emulation{true, "use_nvdec_emulation"}; |
| 328 | Setting<bool> accelerate_astc{true, "accelerate_astc"}; | 331 | Setting<bool> accelerate_astc{true, "accelerate_astc"}; |
| 329 | Setting<bool> use_vsync{true, "use_vsync"}; | 332 | Setting<bool> use_vsync{true, "use_vsync"}; |
| 330 | Setting<bool> disable_fps_limit{false, "disable_fps_limit"}; | 333 | BasicSetting<bool> disable_fps_limit{false, "disable_fps_limit"}; |
| 331 | Setting<bool> use_assembly_shaders{false, "use_assembly_shaders"}; | 334 | Setting<bool> use_assembly_shaders{false, "use_assembly_shaders"}; |
| 332 | Setting<bool> use_asynchronous_shaders{false, "use_asynchronous_shaders"}; | 335 | Setting<bool> use_asynchronous_shaders{false, "use_asynchronous_shaders"}; |
| 333 | Setting<bool> use_fast_gpu_time{true, "use_fast_gpu_time"}; | 336 | Setting<bool> use_fast_gpu_time{true, "use_fast_gpu_time"}; |
| 334 | Setting<bool> use_caches_gc{false, "use_caches_gc"}; | 337 | Setting<bool> use_caches_gc{false, "use_caches_gc"}; |
| 335 | 338 | ||
| 336 | Setting<float> bg_red{0.0f, "bg_red"}; | 339 | Setting<u8> bg_red{0, "bg_red"}; |
| 337 | Setting<float> bg_green{0.0f, "bg_green"}; | 340 | Setting<u8> bg_green{0, "bg_green"}; |
| 338 | Setting<float> bg_blue{0.0f, "bg_blue"}; | 341 | Setting<u8> bg_blue{0, "bg_blue"}; |
| 339 | 342 | ||
| 340 | // System | 343 | // System |
| 341 | Setting<std::optional<u32>> rng_seed{std::optional<u32>(), "rng_seed"}; | 344 | Setting<std::optional<u32>> rng_seed{std::optional<u32>(), "rng_seed"}; |
| @@ -365,7 +368,7 @@ struct Values { | |||
| 365 | "udp_input_servers"}; | 368 | "udp_input_servers"}; |
| 366 | 369 | ||
| 367 | BasicSetting<bool> mouse_panning{false, "mouse_panning"}; | 370 | BasicSetting<bool> mouse_panning{false, "mouse_panning"}; |
| 368 | BasicSetting<float> mouse_panning_sensitivity{1.0f, "mouse_panning_sensitivity"}; | 371 | BasicSetting<u8> mouse_panning_sensitivity{10, "mouse_panning_sensitivity"}; |
| 369 | BasicSetting<bool> mouse_enabled{false, "mouse_enabled"}; | 372 | BasicSetting<bool> mouse_enabled{false, "mouse_enabled"}; |
| 370 | std::string mouse_device; | 373 | std::string mouse_device; |
| 371 | MouseButtonsRaw mouse_buttons; | 374 | MouseButtonsRaw mouse_buttons; |