diff options
| author | 2023-06-10 23:39:47 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:54 -0400 | |
| commit | 02265f19d996f7266da7c4cba5c9d93ab3727f9f (patch) | |
| tree | f83b86f8047e2655cf04578775492274b6de2c32 /src | |
| parent | shared_widget: Avoid calling QWidgetPrivate::setVisible (diff) | |
| download | yuzu-02265f19d996f7266da7c4cba5c9d93ab3727f9f.tar.gz yuzu-02265f19d996f7266da7c4cba5c9d93ab3727f9f.tar.xz yuzu-02265f19d996f7266da7c4cba5c9d93ab3727f9f.zip | |
settings: Remove redundant false literals
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/settings.h | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/src/common/settings.h b/src/common/settings.h index 29dad27fc..ec0686120 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -625,8 +625,8 @@ struct Values { | |||
| 625 | Category::Renderer}; | 625 | Category::Renderer}; |
| 626 | SwitchableSetting<bool> use_asynchronous_gpu_emulation{ | 626 | SwitchableSetting<bool> use_asynchronous_gpu_emulation{ |
| 627 | linkage, true, "use_asynchronous_gpu_emulation", Category::Renderer}; | 627 | linkage, true, "use_asynchronous_gpu_emulation", Category::Renderer}; |
| 628 | SwitchableSetting<bool, false> use_speed_limit{ | 628 | SwitchableSetting<bool> use_speed_limit{linkage, true, "use_speed_limit", Category::Renderer, |
| 629 | linkage, true, "use_speed_limit", Category::Renderer, false, true}; | 629 | false, true}; |
| 630 | SwitchableSetting<u16, true> speed_limit{ | 630 | SwitchableSetting<u16, true> speed_limit{ |
| 631 | linkage, 100, 0, 9999, "speed_limit", Category::Renderer, true, true}; | 631 | linkage, 100, 0, 9999, "speed_limit", Category::Renderer, true, true}; |
| 632 | SwitchableSetting<AstcDecodeMode, true> accelerate_astc{linkage, | 632 | SwitchableSetting<AstcDecodeMode, true> accelerate_astc{linkage, |
| @@ -671,9 +671,9 @@ struct Values { | |||
| 671 | ResolutionScalingInfo resolution_info{}; | 671 | ResolutionScalingInfo resolution_info{}; |
| 672 | SwitchableSetting<ResolutionSetup> resolution_setup{linkage, ResolutionSetup::Res1X, | 672 | SwitchableSetting<ResolutionSetup> resolution_setup{linkage, ResolutionSetup::Res1X, |
| 673 | "resolution_setup", Category::Renderer}; | 673 | "resolution_setup", Category::Renderer}; |
| 674 | SwitchableSetting<ScalingFilter, false> scaling_filter{ | 674 | SwitchableSetting<ScalingFilter> scaling_filter{ |
| 675 | linkage, ScalingFilter::Bilinear, "scaling_filter", Category::Renderer, true, true}; | 675 | linkage, ScalingFilter::Bilinear, "scaling_filter", Category::Renderer, true, true}; |
| 676 | SwitchableSetting<AntiAliasing, false> anti_aliasing{ | 676 | SwitchableSetting<AntiAliasing> anti_aliasing{ |
| 677 | linkage, AntiAliasing::None, "anti_aliasing", Category::Renderer, true, true}; | 677 | linkage, AntiAliasing::None, "anti_aliasing", Category::Renderer, true, true}; |
| 678 | SwitchableSetting<int, true> fsr_sharpening_slider{ | 678 | SwitchableSetting<int, true> fsr_sharpening_slider{ |
| 679 | linkage, 25, 0, 200, "fsr_sharpening_slider", Category::Renderer, true, true}; | 679 | linkage, 25, 0, 200, "fsr_sharpening_slider", Category::Renderer, true, true}; |
| @@ -707,9 +707,9 @@ struct Values { | |||
| 707 | Category::RendererAdvanced}; | 707 | Category::RendererAdvanced}; |
| 708 | SwitchableSetting<bool> use_asynchronous_shaders{linkage, false, "use_asynchronous_shaders", | 708 | SwitchableSetting<bool> use_asynchronous_shaders{linkage, false, "use_asynchronous_shaders", |
| 709 | Category::RendererAdvanced}; | 709 | Category::RendererAdvanced}; |
| 710 | SwitchableSetting<bool, false> use_fast_gpu_time{ | 710 | SwitchableSetting<bool> use_fast_gpu_time{ |
| 711 | linkage, true, "use_fast_gpu_time", Category::RendererAdvanced, true, true}; | 711 | linkage, true, "use_fast_gpu_time", Category::RendererAdvanced, true, true}; |
| 712 | SwitchableSetting<bool, false> use_vulkan_driver_pipeline_cache{ | 712 | SwitchableSetting<bool> use_vulkan_driver_pipeline_cache{ |
| 713 | linkage, true, "use_vulkan_driver_pipeline_cache", Category::RendererAdvanced, true, true}; | 713 | linkage, true, "use_vulkan_driver_pipeline_cache", Category::RendererAdvanced, true, true}; |
| 714 | SwitchableSetting<bool> enable_compute_pipelines{linkage, false, "enable_compute_pipelines", | 714 | SwitchableSetting<bool> enable_compute_pipelines{linkage, false, "enable_compute_pipelines", |
| 715 | Category::RendererAdvanced}; | 715 | Category::RendererAdvanced}; |
| @@ -756,12 +756,12 @@ struct Values { | |||
| 756 | // Controls | 756 | // Controls |
| 757 | InputSetting<std::array<PlayerInput, 10>> players; | 757 | InputSetting<std::array<PlayerInput, 10>> players; |
| 758 | 758 | ||
| 759 | Setting<bool, false> enable_raw_input{linkage, false, "enable_raw_input", Category::Controls, | 759 | Setting<bool> enable_raw_input{linkage, false, "enable_raw_input", Category::Controls, |
| 760 | // Only read/write enable_raw_input on Windows platforms | 760 | // Only read/write enable_raw_input on Windows platforms |
| 761 | #ifdef _WIN32 | 761 | #ifdef _WIN32 |
| 762 | true | 762 | true |
| 763 | #else | 763 | #else |
| 764 | false | 764 | false |
| 765 | #endif | 765 | #endif |
| 766 | }; | 766 | }; |
| 767 | Setting<bool> controller_navigation{linkage, true, "controller_navigation", Category::Controls}; | 767 | Setting<bool> controller_navigation{linkage, true, "controller_navigation", Category::Controls}; |
| @@ -783,7 +783,7 @@ struct Values { | |||
| 783 | Setting<bool> tas_enable{linkage, false, "tas_enable", Category::Controls}; | 783 | Setting<bool> tas_enable{linkage, false, "tas_enable", Category::Controls}; |
| 784 | Setting<bool> tas_loop{linkage, false, "tas_loop", Category::Controls}; | 784 | Setting<bool> tas_loop{linkage, false, "tas_loop", Category::Controls}; |
| 785 | 785 | ||
| 786 | Setting<bool, false> mouse_panning{linkage, false, "mouse_panning", Category::Controls, false}; | 786 | Setting<bool> mouse_panning{linkage, false, "mouse_panning", Category::Controls, false}; |
| 787 | Setting<u8, true> mouse_panning_sensitivity{ | 787 | Setting<u8, true> mouse_panning_sensitivity{ |
| 788 | linkage, 50, 1, 100, "mouse_panning_sensitivity", Category::Controls}; | 788 | linkage, 50, 1, 100, "mouse_panning_sensitivity", Category::Controls}; |
| 789 | Setting<bool> mouse_enabled{linkage, false, "mouse_enabled", Category::Controls}; | 789 | Setting<bool> mouse_enabled{linkage, false, "mouse_enabled", Category::Controls}; |
| @@ -839,22 +839,19 @@ struct Values { | |||
| 839 | Setting<std::string> program_args{linkage, std::string(), "program_args", Category::Debugging}; | 839 | Setting<std::string> program_args{linkage, std::string(), "program_args", Category::Debugging}; |
| 840 | Setting<bool> dump_exefs{linkage, false, "dump_exefs", Category::Debugging}; | 840 | Setting<bool> dump_exefs{linkage, false, "dump_exefs", Category::Debugging}; |
| 841 | Setting<bool> dump_nso{linkage, false, "dump_nso", Category::Debugging}; | 841 | Setting<bool> dump_nso{linkage, false, "dump_nso", Category::Debugging}; |
| 842 | Setting<bool, false> dump_shaders{linkage, false, "dump_shaders", Category::DebuggingGraphics, | 842 | Setting<bool> dump_shaders{linkage, false, "dump_shaders", Category::DebuggingGraphics, false}; |
| 843 | false}; | 843 | Setting<bool> dump_macros{linkage, false, "dump_macros", Category::DebuggingGraphics, false}; |
| 844 | Setting<bool, false> dump_macros{linkage, false, "dump_macros", Category::DebuggingGraphics, | ||
| 845 | false}; | ||
| 846 | Setting<bool> enable_fs_access_log{linkage, false, "enable_fs_access_log", Category::Debugging}; | 844 | Setting<bool> enable_fs_access_log{linkage, false, "enable_fs_access_log", Category::Debugging}; |
| 847 | Setting<bool, false> reporting_services{linkage, false, "reporting_services", | 845 | Setting<bool> reporting_services{linkage, false, "reporting_services", Category::Debugging, |
| 848 | Category::Debugging, false}; | 846 | false}; |
| 849 | Setting<bool> quest_flag{linkage, false, "quest_flag", Category::Debugging}; | 847 | Setting<bool> quest_flag{linkage, false, "quest_flag", Category::Debugging}; |
| 850 | Setting<bool> disable_macro_jit{linkage, false, "disable_macro_jit", | 848 | Setting<bool> disable_macro_jit{linkage, false, "disable_macro_jit", |
| 851 | Category::DebuggingGraphics}; | 849 | Category::DebuggingGraphics}; |
| 852 | Setting<bool> disable_macro_hle{linkage, false, "disable_macro_hle", | 850 | Setting<bool> disable_macro_hle{linkage, false, "disable_macro_hle", |
| 853 | Category::DebuggingGraphics}; | 851 | Category::DebuggingGraphics}; |
| 854 | Setting<bool, false> extended_logging{linkage, false, "extended_logging", Category::Debugging, | 852 | Setting<bool> extended_logging{linkage, false, "extended_logging", Category::Debugging, false}; |
| 855 | false}; | ||
| 856 | Setting<bool> use_debug_asserts{linkage, false, "use_debug_asserts", Category::Debugging}; | 853 | Setting<bool> use_debug_asserts{linkage, false, "use_debug_asserts", Category::Debugging}; |
| 857 | Setting<bool, false> use_auto_stub{linkage, false, "use_auto_stub", Category::Debugging, false}; | 854 | Setting<bool> use_auto_stub{linkage, false, "use_auto_stub", Category::Debugging, false}; |
| 858 | Setting<bool> enable_all_controllers{linkage, false, "enable_all_controllers", | 855 | Setting<bool> enable_all_controllers{linkage, false, "enable_all_controllers", |
| 859 | Category::Debugging}; | 856 | Category::Debugging}; |
| 860 | Setting<bool> create_crash_dumps{linkage, false, "create_crash_dumps", Category::Debugging}; | 857 | Setting<bool> create_crash_dumps{linkage, false, "create_crash_dumps", Category::Debugging}; |