diff options
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/common/scratch_buffer.h | 1 | ||||
| -rw-r--r-- | src/common/settings.cpp | 9 | ||||
| -rw-r--r-- | src/common/settings.h | 1 |
4 files changed, 12 insertions, 1 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 9884a4a0b..56b247ac4 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -176,7 +176,7 @@ endif() | |||
| 176 | 176 | ||
| 177 | create_target_directory_groups(common) | 177 | create_target_directory_groups(common) |
| 178 | 178 | ||
| 179 | target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads) | 179 | target_link_libraries(common PUBLIC Boost::context Boost::headers fmt::fmt microprofile Threads::Threads) |
| 180 | target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd LLVM::Demangle) | 180 | target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd LLVM::Demangle) |
| 181 | 181 | ||
| 182 | if (YUZU_USE_PRECOMPILED_HEADERS) | 182 | if (YUZU_USE_PRECOMPILED_HEADERS) |
diff --git a/src/common/scratch_buffer.h b/src/common/scratch_buffer.h index 1245a5086..26d4e76dc 100644 --- a/src/common/scratch_buffer.h +++ b/src/common/scratch_buffer.h | |||
| @@ -23,6 +23,7 @@ public: | |||
| 23 | buffer{Common::make_unique_for_overwrite<T[]>(initial_capacity)} {} | 23 | buffer{Common::make_unique_for_overwrite<T[]>(initial_capacity)} {} |
| 24 | 24 | ||
| 25 | ~ScratchBuffer() = default; | 25 | ~ScratchBuffer() = default; |
| 26 | ScratchBuffer(ScratchBuffer&&) = default; | ||
| 26 | 27 | ||
| 27 | /// This will only grow the buffer's capacity if size is greater than the current capacity. | 28 | /// This will only grow the buffer's capacity if size is greater than the current capacity. |
| 28 | /// The previously held data will remain intact. | 29 | /// The previously held data will remain intact. |
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 49b41c158..84955030b 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -59,6 +59,7 @@ void LogSettings() { | |||
| 59 | values.use_asynchronous_gpu_emulation.GetValue()); | 59 | values.use_asynchronous_gpu_emulation.GetValue()); |
| 60 | log_setting("Renderer_NvdecEmulation", values.nvdec_emulation.GetValue()); | 60 | log_setting("Renderer_NvdecEmulation", values.nvdec_emulation.GetValue()); |
| 61 | log_setting("Renderer_AccelerateASTC", values.accelerate_astc.GetValue()); | 61 | log_setting("Renderer_AccelerateASTC", values.accelerate_astc.GetValue()); |
| 62 | log_setting("Renderer_AsyncASTC", values.async_astc.GetValue()); | ||
| 62 | log_setting("Renderer_UseVsync", values.use_vsync.GetValue()); | 63 | log_setting("Renderer_UseVsync", values.use_vsync.GetValue()); |
| 63 | log_setting("Renderer_ShaderBackend", values.shader_backend.GetValue()); | 64 | log_setting("Renderer_ShaderBackend", values.shader_backend.GetValue()); |
| 64 | log_setting("Renderer_UseAsynchronousShaders", values.use_asynchronous_shaders.GetValue()); | 65 | log_setting("Renderer_UseAsynchronousShaders", values.use_asynchronous_shaders.GetValue()); |
| @@ -76,6 +77,13 @@ void LogSettings() { | |||
| 76 | log_setting("Debugging_GDBStub", values.use_gdbstub.GetValue()); | 77 | log_setting("Debugging_GDBStub", values.use_gdbstub.GetValue()); |
| 77 | log_setting("Input_EnableMotion", values.motion_enabled.GetValue()); | 78 | log_setting("Input_EnableMotion", values.motion_enabled.GetValue()); |
| 78 | log_setting("Input_EnableVibration", values.vibration_enabled.GetValue()); | 79 | log_setting("Input_EnableVibration", values.vibration_enabled.GetValue()); |
| 80 | log_setting("Input_EnableTouch", values.touchscreen.enabled); | ||
| 81 | log_setting("Input_EnableMouse", values.mouse_enabled.GetValue()); | ||
| 82 | log_setting("Input_EnableKeyboard", values.keyboard_enabled.GetValue()); | ||
| 83 | log_setting("Input_EnableRingController", values.enable_ring_controller.GetValue()); | ||
| 84 | log_setting("Input_EnableIrSensor", values.enable_ir_sensor.GetValue()); | ||
| 85 | log_setting("Input_EnableCustomJoycon", values.enable_joycon_driver.GetValue()); | ||
| 86 | log_setting("Input_EnableCustomProController", values.enable_procon_driver.GetValue()); | ||
| 79 | log_setting("Input_EnableRawInput", values.enable_raw_input.GetValue()); | 87 | log_setting("Input_EnableRawInput", values.enable_raw_input.GetValue()); |
| 80 | } | 88 | } |
| 81 | 89 | ||
| @@ -212,6 +220,7 @@ void RestoreGlobalState(bool is_powered_on) { | |||
| 212 | values.use_asynchronous_gpu_emulation.SetGlobal(true); | 220 | values.use_asynchronous_gpu_emulation.SetGlobal(true); |
| 213 | values.nvdec_emulation.SetGlobal(true); | 221 | values.nvdec_emulation.SetGlobal(true); |
| 214 | values.accelerate_astc.SetGlobal(true); | 222 | values.accelerate_astc.SetGlobal(true); |
| 223 | values.async_astc.SetGlobal(true); | ||
| 215 | values.use_vsync.SetGlobal(true); | 224 | values.use_vsync.SetGlobal(true); |
| 216 | values.shader_backend.SetGlobal(true); | 225 | values.shader_backend.SetGlobal(true); |
| 217 | values.use_asynchronous_shaders.SetGlobal(true); | 226 | values.use_asynchronous_shaders.SetGlobal(true); |
diff --git a/src/common/settings.h b/src/common/settings.h index 6d27dd5ee..512ecff69 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -453,6 +453,7 @@ struct Values { | |||
| 453 | SwitchableSetting<bool> use_asynchronous_gpu_emulation{true, "use_asynchronous_gpu_emulation"}; | 453 | SwitchableSetting<bool> use_asynchronous_gpu_emulation{true, "use_asynchronous_gpu_emulation"}; |
| 454 | SwitchableSetting<NvdecEmulation> nvdec_emulation{NvdecEmulation::GPU, "nvdec_emulation"}; | 454 | SwitchableSetting<NvdecEmulation> nvdec_emulation{NvdecEmulation::GPU, "nvdec_emulation"}; |
| 455 | SwitchableSetting<bool> accelerate_astc{true, "accelerate_astc"}; | 455 | SwitchableSetting<bool> accelerate_astc{true, "accelerate_astc"}; |
| 456 | SwitchableSetting<bool> async_astc{false, "async_astc"}; | ||
| 456 | SwitchableSetting<bool> use_vsync{true, "use_vsync"}; | 457 | SwitchableSetting<bool> use_vsync{true, "use_vsync"}; |
| 457 | SwitchableSetting<ShaderBackend, true> shader_backend{ShaderBackend::GLSL, ShaderBackend::GLSL, | 458 | SwitchableSetting<ShaderBackend, true> shader_backend{ShaderBackend::GLSL, ShaderBackend::GLSL, |
| 458 | ShaderBackend::SPIRV, "shader_backend"}; | 459 | ShaderBackend::SPIRV, "shader_backend"}; |