diff options
Diffstat (limited to 'src/common/settings.h')
| -rw-r--r-- | src/common/settings.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/common/settings.h b/src/common/settings.h index 32dfb1d9f..cfc1ab46f 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -42,6 +42,11 @@ enum class CPUAccuracy : u32 { | |||
| 42 | Unsafe = 2, | 42 | Unsafe = 2, |
| 43 | }; | 43 | }; |
| 44 | 44 | ||
| 45 | enum class FullscreenMode : u32 { | ||
| 46 | Borderless = 0, | ||
| 47 | Exclusive = 1, | ||
| 48 | }; | ||
| 49 | |||
| 45 | /** The BasicSetting class is a simple resource manager. It defines a label and default value | 50 | /** The BasicSetting class is a simple resource manager. It defines a label and default value |
| 46 | * alongside the actual value of the setting for simpler and less-error prone use with frontend | 51 | * alongside the actual value of the setting for simpler and less-error prone use with frontend |
| 47 | * configurations. Setting a default value and label is required, though subclasses may deviate from | 52 | * configurations. Setting a default value and label is required, though subclasses may deviate from |
| @@ -322,23 +327,24 @@ struct Values { | |||
| 322 | Setting<u16> resolution_factor{1, "resolution_factor"}; | 327 | Setting<u16> resolution_factor{1, "resolution_factor"}; |
| 323 | // *nix platforms may have issues with the borderless windowed fullscreen mode. | 328 | // *nix platforms may have issues with the borderless windowed fullscreen mode. |
| 324 | // Default to exclusive fullscreen on these platforms for now. | 329 | // Default to exclusive fullscreen on these platforms for now. |
| 325 | Setting<int> fullscreen_mode{ | 330 | Setting<FullscreenMode> fullscreen_mode{ |
| 326 | #ifdef _WIN32 | 331 | #ifdef _WIN32 |
| 327 | 0, | 332 | FullscreenMode::Borderless, |
| 328 | #else | 333 | #else |
| 329 | 1, | 334 | FullscreenMode::Exclusive, |
| 330 | #endif | 335 | #endif |
| 331 | "fullscreen_mode"}; | 336 | "fullscreen_mode"}; |
| 332 | Setting<int> aspect_ratio{0, "aspect_ratio"}; | 337 | Setting<int> aspect_ratio{0, "aspect_ratio"}; |
| 333 | Setting<int> max_anisotropy{0, "max_anisotropy"}; | 338 | Setting<int> max_anisotropy{0, "max_anisotropy"}; |
| 334 | Setting<bool> use_frame_limit{true, "use_frame_limit"}; | 339 | Setting<bool> use_speed_limit{true, "use_speed_limit"}; |
| 335 | Setting<u16> frame_limit{100, "frame_limit"}; | 340 | Setting<u16> speed_limit{100, "speed_limit"}; |
| 336 | Setting<bool> use_disk_shader_cache{true, "use_disk_shader_cache"}; | 341 | Setting<bool> use_disk_shader_cache{true, "use_disk_shader_cache"}; |
| 337 | Setting<GPUAccuracy> gpu_accuracy{GPUAccuracy::High, "gpu_accuracy"}; | 342 | Setting<GPUAccuracy> gpu_accuracy{GPUAccuracy::High, "gpu_accuracy"}; |
| 338 | Setting<bool> use_asynchronous_gpu_emulation{true, "use_asynchronous_gpu_emulation"}; | 343 | Setting<bool> use_asynchronous_gpu_emulation{true, "use_asynchronous_gpu_emulation"}; |
| 339 | Setting<bool> use_nvdec_emulation{true, "use_nvdec_emulation"}; | 344 | Setting<bool> use_nvdec_emulation{true, "use_nvdec_emulation"}; |
| 340 | Setting<bool> accelerate_astc{true, "accelerate_astc"}; | 345 | Setting<bool> accelerate_astc{true, "accelerate_astc"}; |
| 341 | Setting<bool> use_vsync{true, "use_vsync"}; | 346 | Setting<bool> use_vsync{true, "use_vsync"}; |
| 347 | BasicSetting<u16> fps_cap{1000, "fps_cap"}; | ||
| 342 | BasicSetting<bool> disable_fps_limit{false, "disable_fps_limit"}; | 348 | BasicSetting<bool> disable_fps_limit{false, "disable_fps_limit"}; |
| 343 | Setting<ShaderBackend> shader_backend{ShaderBackend::GLASM, "shader_backend"}; | 349 | Setting<ShaderBackend> shader_backend{ShaderBackend::GLASM, "shader_backend"}; |
| 344 | Setting<bool> use_asynchronous_shaders{false, "use_asynchronous_shaders"}; | 350 | Setting<bool> use_asynchronous_shaders{false, "use_asynchronous_shaders"}; |