VERY experimental Nintendo Switch 2 emulator
C++
common: Move settings to common from core.
bunnei7a76bc30faa0
diff --git a/src/audio_core/audio_out.cpp b/src/audio_core/audio_out.cppindex fe3a898ade..20a756dcef 100644--- a/src/audio_core/audio_out.cpp+++ b/src/audio_core/audio_out.cpp@@ -7,7 +7,7 @@#include "audio_core/sink_details.h"#include "common/assert.h"#include "common/logging/log.h"-#include "core/settings.h"+#include "common/settings.h"namespace AudioCore {diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cppindex d2ce8c8147..ae2201c36a 100644--- a/src/audio_core/audio_renderer.cpp+++ b/src/audio_core/audio_renderer.cpp@@ -11,8 +11,8 @@#include "audio_core/info_updater.h"#include "audio_core/voice_context.h"#include "common/logging/log.h"+#include "common/settings.h"#include "core/memory.h"-#include "core/settings.h"namespace {[[nodiscard]] static constexpr s16 ClampToS16(s32 value) {diff --git a/src/audio_core/cubeb_sink.cpp b/src/audio_core/cubeb_sink.cppindex 043447eaa2..93c35e7858 100644--- a/src/audio_core/cubeb_sink.cpp+++ b/src/audio_core/cubeb_sink.cpp@@ -11,7 +11,7 @@#include "common/assert.h"#include "common/logging/log.h"#include "common/ring_buffer.h"-#include "core/settings.h"+#include "common/settings.h"#ifdef _WIN32#include <objbase.h>diff --git a/src/audio_core/stream.cpp b/src/audio_core/stream.cppindex b0f6f0c346..ad6c587c25 100644--- a/src/audio_core/stream.cpp+++ b/src/audio_core/stream.cpp@@ -11,8 +11,8 @@#include "audio_core/stream.h"#include "common/assert.h"#include "common/logging/log.h"+#include "common/settings.h"#include "core/core_timing.h"-#include "core/settings.h"namespace AudioCore {diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txtindex 9f8dafa3b6..88644eeb69 100644--- a/src/common/CMakeLists.txt+++ b/src/common/CMakeLists.txt@@ -152,6 +152,10 @@ add_library(common STATICscm_rev.cppscm_rev.hscope_exit.h+ settings.cpp+ settings.h+ settings_input.cpp+ settings_input.hspin_lock.cppspin_lock.hstream.cppdiff --git a/src/common/assert.cpp b/src/common/assert.cppindex 4f599af557..72f1121aa2 100644--- a/src/common/assert.cpp+++ b/src/common/assert.cpp@@ -5,7 +5,7 @@#include "common/assert.h"#include "common/common_funcs.h"-#include "core/settings.h"+#include "common/settings.h"void assert_handle_failure() {if (Settings::values.use_debug_asserts) {diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cppindex 4575df24d7..90ee4f33f9 100644--- a/src/common/logging/backend.cpp+++ b/src/common/logging/backend.cpp@@ -21,9 +21,9 @@#include "common/logging/backend.h"#include "common/logging/log.h"#include "common/logging/text_formatter.h"+#include "common/settings.h"#include "common/string_util.h"#include "common/threadsafe_queue.h"-#include "core/settings.h"namespace Log {diff --git a/src/core/settings.cpp b/src/common/settings.cppsimilarity index 94%rename from src/core/settings.cpprename to src/common/settings.cppindex 2ae5196e02..702b6598df 100644--- a/src/core/settings.cpp+++ b/src/common/settings.cpp@@ -1,4 +1,4 @@-// Copyright 2014 Citra Emulator Project+// Copyright 2021 yuzu Emulator Project// Licensed under GPLv2 or any later version// Refer to the license.txt file included.@@ -7,10 +7,7 @@#include "common/assert.h"#include "common/file_util.h"#include "common/logging/log.h"-#include "core/core.h"-#include "core/hle/service/hid/hid.h"-#include "core/settings.h"-#include "video_core/renderer_base.h"+#include "common/settings.h"namespace Settings {@@ -32,14 +29,6 @@ std::string GetTimeZoneString() {return timezones[time_zone_index];}-void Apply(Core::System& system) {- if (system.IsPoweredOn()) {- system.Renderer().RefreshBaseSettings();- }-- Service::HID::ReloadInputDevices();-}-void LogSettings() {const auto log_setting = [](std::string_view name, const auto& value) {LOG_INFO(Config, "{}: {}", name, value);diff --git a/src/core/settings.h b/src/common/settings.hsimilarity index 96%rename from src/core/settings.hrename to src/common/settings.hindex 0b7d28421f..d39b4aa457 100644--- a/src/core/settings.h+++ b/src/common/settings.h@@ -1,4 +1,4 @@-// Copyright 2014 Citra Emulator Project+// Copyright 2021 yuzu Emulator Project// Licensed under GPLv2 or any later version// Refer to the license.txt file included.@@ -11,16 +11,13 @@#include <optional>#include <string>#include <vector>-#include "common/common_types.h"-#include "input_common/settings.h"-namespace Core {-class System;-}+#include "common/common_types.h"+#include "common/settings_input.h"namespace Settings {-enum class RendererBackend {+enum class RendererBackend : u32 {OpenGL = 0,Vulkan = 1,};@@ -31,7 +28,7 @@ enum class GPUAccuracy : u32 {Extreme = 2,};-enum class CPUAccuracy {+enum class CPUAccuracy : u32 {Accurate = 0,Unsafe = 1,DebugMode = 2,@@ -256,7 +253,6 @@ float Volume();std::string GetTimeZoneString();-void Apply(Core::System& system);void LogSettings();// Restore the global state of all applicable settings in the Values structdiff --git a/src/input_common/settings.cpp b/src/common/settings_input.cppsimilarity index 97%rename from src/input_common/settings.cpprename to src/common/settings_input.cppindex 557e7a9a0c..bea2b837bd 100644--- a/src/input_common/settings.cpp+++ b/src/common/settings_input.cpp@@ -2,7 +2,7 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "input_common/settings.h"+#include "common/settings_input.h"namespace Settings {namespace NativeButton {diff --git a/src/input_common/settings.h b/src/common/settings_input.hsimilarity index 99%rename from src/input_common/settings.hrename to src/common/settings_input.hindex a59f5d4612..6096005822 100644--- a/src/input_common/settings.h+++ b/src/common/settings_input.h@@ -6,6 +6,7 @@#include <array>#include <string>+#include "common/common_types.h"namespace Settings {diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txtindex 167ee13f3f..286e912e3e 100644--- a/src/core/CMakeLists.txt+++ b/src/core/CMakeLists.txt@@ -621,8 +621,6 @@ add_library(core STATICperf_stats.hreporter.cppreporter.h- settings.cpp- settings.htelemetry_session.cpptelemetry_session.htools/freezer.cppdiff --git a/src/core/arm/dynarmic/arm_dynarmic_32.cpp b/src/core/arm/dynarmic/arm_dynarmic_32.cppindex 08d8891356..7aeb2a6588 100644--- a/src/core/arm/dynarmic/arm_dynarmic_32.cpp+++ b/src/core/arm/dynarmic/arm_dynarmic_32.cpp@@ -10,6 +10,7 @@#include "common/assert.h"#include "common/logging/log.h"#include "common/page_table.h"+#include "common/settings.h"#include "core/arm/cpu_interrupt_handler.h"#include "core/arm/dynarmic/arm_dynarmic_32.h"#include "core/arm/dynarmic/arm_dynarmic_cp15.h"@@ -18,7 +19,6 @@#include "core/core_timing.h"#include "core/hle/kernel/svc.h"#include "core/memory.h"-#include "core/settings.h"namespace Core {diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.cpp b/src/core/arm/dynarmic/arm_dynarmic_64.cppindex e12e50658f..040529f4db 100644--- a/src/core/arm/dynarmic/arm_dynarmic_64.cpp+++ b/src/core/arm/dynarmic/arm_dynarmic_64.cpp@@ -9,6 +9,7 @@#include "common/assert.h"#include "common/logging/log.h"#include "common/page_table.h"+#include "common/settings.h"#include "core/arm/cpu_interrupt_handler.h"#include "core/arm/dynarmic/arm_dynarmic_64.h"#include "core/arm/dynarmic/arm_exclusive_monitor.h"@@ -19,7 +20,6 @@#include "core/hle/kernel/process.h"#include "core/hle/kernel/svc.h"#include "core/memory.h"-#include "core/settings.h"namespace Core {diff --git a/src/core/core.cpp b/src/core/core.cppindex 56b47e671c..d459d6c344 100644--- a/src/core/core.cpp+++ b/src/core/core.cpp@@ -9,6 +9,7 @@#include "common/file_util.h"#include "common/logging/log.h"#include "common/microprofile.h"+#include "common/settings.h"#include "common/string_util.h"#include "core/arm/exclusive_monitor.h"#include "core/core.h"@@ -36,6 +37,7 @@#include "core/hle/service/apm/controller.h"#include "core/hle/service/filesystem/filesystem.h"#include "core/hle/service/glue/manager.h"+#include "core/hle/service/hid/hid.h"#include "core/hle/service/service.h"#include "core/hle/service/sm/sm.h"#include "core/hle/service/time/time_manager.h"@@ -45,7 +47,6 @@#include "core/network/network.h"#include "core/perf_stats.h"#include "core/reporter.h"-#include "core/settings.h"#include "core/telemetry_session.h"#include "core/tools/freezer.h"#include "video_core/renderer_base.h"@@ -774,4 +775,12 @@ void System::ExecuteProgram(std::size_t program_index) {}}+void System::ApplySettings() {+ if (IsPoweredOn()) {+ Renderer().RefreshBaseSettings();+ }++ Service::HID::ReloadInputDevices();+}+} // namespace Corediff --git a/src/core/core.h b/src/core/core.hindex 3a8e040c14..f1068d23f6 100644--- a/src/core/core.h+++ b/src/core/core.h@@ -388,6 +388,9 @@ public:*/void ExecuteProgram(std::size_t program_index);+ /// Applies any changes to settings to this core instance.+ void ApplySettings();+private:System();diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cppindex ad116dcc09..070ed439e6 100644--- a/src/core/crypto/key_manager.cpp+++ b/src/core/crypto/key_manager.cpp@@ -22,6 +22,7 @@#include "common/file_util.h"#include "common/hex_util.h"#include "common/logging/log.h"+#include "common/settings.h"#include "common/string_util.h"#include "core/crypto/aes_util.h"#include "core/crypto/key_manager.h"@@ -32,7 +33,6 @@#include "core/file_sys/registered_cache.h"#include "core/hle/service/filesystem/filesystem.h"#include "core/loader/loader.h"-#include "core/settings.h"namespace Core::Crypto {namespace {diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cppindex 7c3284df88..cc9b4b6373 100644--- a/src/core/file_sys/patch_manager.cpp+++ b/src/core/file_sys/patch_manager.cpp@@ -10,6 +10,7 @@#include "common/file_util.h"#include "common/hex_util.h"#include "common/logging/log.h"+#include "common/settings.h"#include "common/string_util.h"#include "core/core.h"#include "core/file_sys/common_funcs.h"@@ -25,7 +26,6 @@#include "core/loader/loader.h"#include "core/loader/nso.h"#include "core/memory/cheat_engine.h"-#include "core/settings.h"namespace FileSys {namespace {diff --git a/src/core/frontend/applets/profile_select.cpp b/src/core/frontend/applets/profile_select.cppindex 4df3574d26..8d960d1ca9 100644--- a/src/core/frontend/applets/profile_select.cpp+++ b/src/core/frontend/applets/profile_select.cpp@@ -2,9 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/settings.h"#include "core/frontend/applets/profile_select.h"#include "core/hle/service/acc/profile_manager.h"-#include "core/settings.h"namespace Core::Frontend {diff --git a/src/core/frontend/emu_window.cpp b/src/core/frontend/emu_window.cppindex ee7a58b1c0..474de92068 100644--- a/src/core/frontend/emu_window.cpp+++ b/src/core/frontend/emu_window.cpp@@ -4,9 +4,9 @@#include <cmath>#include <mutex>+#include "common/settings.h"#include "core/frontend/emu_window.h"#include "core/frontend/input.h"-#include "core/settings.h"namespace Core::Frontend {diff --git a/src/core/frontend/framebuffer_layout.cpp b/src/core/frontend/framebuffer_layout.cppindex b9a270a55c..0832463d6c 100644--- a/src/core/frontend/framebuffer_layout.cpp+++ b/src/core/frontend/framebuffer_layout.cpp@@ -5,8 +5,8 @@#include <cmath>#include "common/assert.h"+#include "common/settings.h"#include "core/frontend/framebuffer_layout.h"-#include "core/settings.h"namespace Layout {diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cppindex 9d5956ead7..4208884396 100644--- a/src/core/hle/kernel/process.cpp+++ b/src/core/hle/kernel/process.cpp@@ -10,6 +10,7 @@#include "common/alignment.h"#include "common/assert.h"#include "common/logging/log.h"+#include "common/settings.h"#include "core/core.h"#include "core/device_memory.h"#include "core/file_sys/program_metadata.h"@@ -26,7 +27,6 @@#include "core/hle/kernel/svc_results.h"#include "core/hle/lock.h"#include "core/memory.h"-#include "core/settings.h"namespace Kernel {namespace {diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cppindex 50b2c58e2b..de83d82a4a 100644--- a/src/core/hle/service/acc/profile_manager.cpp+++ b/src/core/hle/service/acc/profile_manager.cpp@@ -8,8 +8,8 @@#include <fmt/format.h>#include "common/file_util.h"+#include "common/settings.h"#include "core/hle/service/acc/profile_manager.h"-#include "core/settings.h"namespace Service::Account {diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cppindex 4374487a37..416c5239ac 100644--- a/src/core/hle/service/am/am.cpp+++ b/src/core/hle/service/am/am.cpp@@ -7,6 +7,7 @@#include <cinttypes>#include <cstring>#include "audio_core/audio_renderer.h"+#include "common/settings.h"#include "core/core.h"#include "core/file_sys/control_metadata.h"#include "core/file_sys/patch_manager.h"@@ -41,7 +42,6 @@#include "core/hle/service/set/set.h"#include "core/hle/service/sm/sm.h"#include "core/hle/service/vi/vi.h"-#include "core/settings.h"namespace Service::AM {diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cppindex 0f51e58719..75867e3492 100644--- a/src/core/hle/service/aoc/aoc_u.cpp+++ b/src/core/hle/service/aoc/aoc_u.cpp@@ -7,6 +7,7 @@#include <vector>#include "common/logging/log.h"+#include "common/settings.h"#include "core/core.h"#include "core/file_sys/common_funcs.h"#include "core/file_sys/content_archive.h"@@ -21,7 +22,6 @@#include "core/hle/kernel/process.h"#include "core/hle/service/aoc/aoc_u.h"#include "core/loader/loader.h"-#include "core/settings.h"namespace Service::AOC {diff --git a/src/core/hle/service/apm/controller.cpp b/src/core/hle/service/apm/controller.cppindex 03636642b5..00c174bb0f 100644--- a/src/core/hle/service/apm/controller.cpp+++ b/src/core/hle/service/apm/controller.cpp@@ -7,9 +7,9 @@#include <utility>#include "common/logging/log.h"+#include "common/settings.h"#include "core/core_timing.h"#include "core/hle/service/apm/controller.h"-#include "core/settings.h"namespace Service::APM {diff --git a/src/core/hle/service/bcat/backend/boxcat.cpp b/src/core/hle/service/bcat/backend/boxcat.cppindex e43f3f47fb..78c047bd2c 100644--- a/src/core/hle/service/bcat/backend/boxcat.cpp+++ b/src/core/hle/service/bcat/backend/boxcat.cpp@@ -9,6 +9,7 @@#include "common/hex_util.h"#include "common/logging/backend.h"#include "common/logging/log.h"+#include "common/settings.h"#include "core/core.h"#include "core/file_sys/vfs.h"#include "core/file_sys/vfs_libzip.h"@@ -16,7 +17,6 @@#include "core/frontend/applets/error.h"#include "core/hle/service/am/applets/applets.h"#include "core/hle/service/bcat/backend/boxcat.h"-#include "core/settings.h"namespace Service::BCAT {namespace {diff --git a/src/core/hle/service/bcat/module.cpp b/src/core/hle/service/bcat/module.cppindex b68e2c3455..c7dd04a6e9 100644--- a/src/core/hle/service/bcat/module.cpp+++ b/src/core/hle/service/bcat/module.cpp@@ -7,6 +7,7 @@#include "backend/boxcat.h"#include "common/hex_util.h"#include "common/logging/log.h"+#include "common/settings.h"#include "common/string_util.h"#include "core/core.h"#include "core/file_sys/vfs.h"@@ -18,7 +19,6 @@#include "core/hle/service/bcat/bcat.h"#include "core/hle/service/bcat/module.h"#include "core/hle/service/filesystem/filesystem.h"-#include "core/settings.h"namespace Service::BCAT {diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cppindex b15c737e1a..72ad273b24 100644--- a/src/core/hle/service/filesystem/filesystem.cpp+++ b/src/core/hle/service/filesystem/filesystem.cpp@@ -6,6 +6,7 @@#include "common/assert.h"#include "common/file_util.h"+#include "common/settings.h"#include "core/core.h"#include "core/file_sys/bis_factory.h"#include "core/file_sys/card_image.h"@@ -26,7 +27,6 @@#include "core/hle/service/filesystem/fsp_pr.h"#include "core/hle/service/filesystem/fsp_srv.h"#include "core/loader/loader.h"-#include "core/settings.h"namespace Service::FileSystem {diff --git a/src/core/hle/service/hid/controllers/debug_pad.cpp b/src/core/hle/service/hid/controllers/debug_pad.cppindex ad251ed4a0..a460f2f790 100644--- a/src/core/hle/service/hid/controllers/debug_pad.cpp+++ b/src/core/hle/service/hid/controllers/debug_pad.cpp@@ -4,9 +4,9 @@#include <cstring>#include "common/common_types.h"+#include "common/settings.h"#include "core/core_timing.h"#include "core/hle/service/hid/controllers/debug_pad.h"-#include "core/settings.h"namespace Service::HID {diff --git a/src/core/hle/service/hid/controllers/debug_pad.h b/src/core/hle/service/hid/controllers/debug_pad.hindex 555b29d765..0593d7d390 100644--- a/src/core/hle/service/hid/controllers/debug_pad.h+++ b/src/core/hle/service/hid/controllers/debug_pad.h@@ -8,10 +8,10 @@#include "common/bit_field.h"#include "common/common_funcs.h"#include "common/common_types.h"+#include "common/settings.h"#include "common/swap.h"#include "core/frontend/input.h"#include "core/hle/service/hid/controllers/controller_base.h"-#include "core/settings.h"namespace Service::HID {class Controller_DebugPad final : public ControllerBase {diff --git a/src/core/hle/service/hid/controllers/gesture.cpp b/src/core/hle/service/hid/controllers/gesture.cppindex 93c43a2031..155808f6a9 100644--- a/src/core/hle/service/hid/controllers/gesture.cpp+++ b/src/core/hle/service/hid/controllers/gesture.cpp@@ -5,10 +5,10 @@#include <cstring>#include "common/common_types.h"#include "common/logging/log.h"+#include "common/settings.h"#include "core/core_timing.h"#include "core/frontend/emu_window.h"#include "core/hle/service/hid/controllers/gesture.h"-#include "core/settings.h"namespace Service::HID {constexpr std::size_t SHARED_MEMORY_OFFSET = 0x3BA00;diff --git a/src/core/hle/service/hid/controllers/keyboard.cpp b/src/core/hle/service/hid/controllers/keyboard.cppindex c4a59147d4..18b76038f9 100644--- a/src/core/hle/service/hid/controllers/keyboard.cpp+++ b/src/core/hle/service/hid/controllers/keyboard.cpp@@ -4,9 +4,9 @@#include <cstring>#include "common/common_types.h"+#include "common/settings.h"#include "core/core_timing.h"#include "core/hle/service/hid/controllers/keyboard.h"-#include "core/settings.h"namespace Service::HID {constexpr std::size_t SHARED_MEMORY_OFFSET = 0x3800;diff --git a/src/core/hle/service/hid/controllers/keyboard.h b/src/core/hle/service/hid/controllers/keyboard.hindex b5b2817522..e729485916 100644--- a/src/core/hle/service/hid/controllers/keyboard.h+++ b/src/core/hle/service/hid/controllers/keyboard.h@@ -8,10 +8,10 @@#include "common/bit_field.h"#include "common/common_funcs.h"#include "common/common_types.h"+#include "common/settings.h"#include "common/swap.h"#include "core/frontend/input.h"#include "core/hle/service/hid/controllers/controller_base.h"-#include "core/settings.h"namespace Service::HID {class Controller_Keyboard final : public ControllerBase {diff --git a/src/core/hle/service/hid/controllers/mouse.h b/src/core/hle/service/hid/controllers/mouse.hindex 3b432a36eb..0ec0c2b945 100644--- a/src/core/hle/service/hid/controllers/mouse.h+++ b/src/core/hle/service/hid/controllers/mouse.h@@ -7,10 +7,10 @@#include <array>#include "common/bit_field.h"#include "common/common_types.h"+#include "common/settings.h"#include "common/swap.h"#include "core/frontend/input.h"#include "core/hle/service/hid/controllers/controller_base.h"-#include "core/settings.h"namespace Service::HID {class Controller_Mouse final : public ControllerBase {diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cppindex 673db68c73..783386fcf8 100644--- a/src/core/hle/service/hid/controllers/npad.cpp+++ b/src/core/hle/service/hid/controllers/npad.cpp@@ -9,6 +9,7 @@#include "common/bit_field.h"#include "common/common_types.h"#include "common/logging/log.h"+#include "common/settings.h"#include "core/core.h"#include "core/core_timing.h"#include "core/frontend/input.h"@@ -17,7 +18,6 @@#include "core/hle/kernel/k_writable_event.h"#include "core/hle/kernel/kernel.h"#include "core/hle/service/hid/controllers/npad.h"-#include "core/settings.h"namespace Service::HID {constexpr s32 HID_JOYSTICK_MAX = 0x7fff;diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.hindex 873a0a1e26..14d0ac067e 100644--- a/src/core/hle/service/hid/controllers/npad.h+++ b/src/core/hle/service/hid/controllers/npad.h@@ -8,10 +8,10 @@#include <atomic>#include "common/bit_field.h"#include "common/common_types.h"+#include "common/settings.h"#include "core/frontend/input.h"#include "core/hle/kernel/object.h"#include "core/hle/service/hid/controllers/controller_base.h"-#include "core/settings.h"namespace Kernel {class KEvent;diff --git a/src/core/hle/service/hid/controllers/touchscreen.cpp b/src/core/hle/service/hid/controllers/touchscreen.cppindex be60492a4e..b5f8077be7 100644--- a/src/core/hle/service/hid/controllers/touchscreen.cpp+++ b/src/core/hle/service/hid/controllers/touchscreen.cpp@@ -6,11 +6,11 @@#include <cstring>#include "common/common_types.h"#include "common/logging/log.h"+#include "common/settings.h"#include "core/core_timing.h"#include "core/frontend/emu_window.h"#include "core/frontend/input.h"#include "core/hle/service/hid/controllers/touchscreen.h"-#include "core/settings.h"namespace Service::HID {constexpr std::size_t SHARED_MEMORY_OFFSET = 0x400;diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cppindex a1a779cc06..4c1c0ac688 100644--- a/src/core/hle/service/hid/hid.cpp+++ b/src/core/hle/service/hid/hid.cpp@@ -5,6 +5,7 @@#include <array>#include "common/common_types.h"#include "common/logging/log.h"+#include "common/settings.h"#include "core/core.h"#include "core/core_timing.h"#include "core/core_timing_util.h"@@ -23,7 +24,6 @@#include "core/hle/service/hid/irs.h"#include "core/hle/service/hid/xcd.h"#include "core/hle/service/service.h"-#include "core/settings.h"#include "core/hle/service/hid/controllers/controller_base.h"#include "core/hle/service/hid/controllers/debug_pad.h"diff --git a/src/core/hle/service/nfc/nfc.cpp b/src/core/hle/service/nfc/nfc.cppindex 6ab35de479..44a5d57896 100644--- a/src/core/hle/service/nfc/nfc.cpp+++ b/src/core/hle/service/nfc/nfc.cpp@@ -5,12 +5,12 @@#include <memory>#include "common/logging/log.h"+#include "common/settings.h"#include "core/hle/ipc_helpers.h"#include "core/hle/kernel/hle_ipc.h"#include "core/hle/service/nfc/nfc.h"#include "core/hle/service/service.h"#include "core/hle/service/sm/sm.h"-#include "core/settings.h"namespace Service::NFC {diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cppindex afb3342d66..9f110df8e8 100644--- a/src/core/hle/service/nifm/nifm.cpp+++ b/src/core/hle/service/nifm/nifm.cpp@@ -2,6 +2,7 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/settings.h"#include "core/core.h"#include "core/hle/ipc_helpers.h"#include "core/hle/kernel/k_event.h"@@ -10,7 +11,6 @@#include "core/hle/service/nifm/nifm.h"#include "core/hle/service/service.h"#include "core/network/network.h"-#include "core/settings.h"namespace Service::NIFM {diff --git a/src/core/hle/service/ns/ns.cpp b/src/core/hle/service/ns/ns.cppindex 5fe7a91894..e373609a17 100644--- a/src/core/hle/service/ns/ns.cpp+++ b/src/core/hle/service/ns/ns.cpp@@ -3,6 +3,7 @@// Refer to the license.txt file included.#include "common/logging/log.h"+#include "common/settings.h"#include "core/core.h"#include "core/file_sys/control_metadata.h"#include "core/file_sys/patch_manager.h"@@ -14,7 +15,6 @@#include "core/hle/service/ns/ns.h"#include "core/hle/service/ns/pl_u.h"#include "core/hle/service/set/set.h"-#include "core/settings.h"namespace Service::NS {diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cppindex ac2906e5b5..539b02bc4b 100644--- a/src/core/hle/service/nvflinger/nvflinger.cpp+++ b/src/core/hle/service/nvflinger/nvflinger.cpp@@ -9,6 +9,7 @@#include "common/logging/log.h"#include "common/microprofile.h"#include "common/scope_exit.h"+#include "common/settings.h"#include "common/thread.h"#include "core/core.h"#include "core/core_timing.h"@@ -23,7 +24,6 @@#include "core/hle/service/vi/display/vi_display.h"#include "core/hle/service/vi/layer/vi_layer.h"#include "core/perf_stats.h"-#include "core/settings.h"#include "video_core/renderer_base.h"namespace Service::NVFlinger {diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cppindex aec399076a..41a502d8dd 100644--- a/src/core/hle/service/service.cpp+++ b/src/core/hle/service/service.cpp@@ -6,6 +6,7 @@#include <fmt/format.h>#include "common/assert.h"#include "common/logging/log.h"+#include "common/settings.h"#include "common/string_util.h"#include "core/core.h"#include "core/hle/ipc.h"@@ -70,7 +71,6 @@#include "core/hle/service/vi/vi.h"#include "core/hle/service/wlan/wlan.h"#include "core/reporter.h"-#include "core/settings.h"namespace Service {diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cppindex d953b4303d..bc7dc776f0 100644--- a/src/core/hle/service/set/set.cpp+++ b/src/core/hle/service/set/set.cpp@@ -6,9 +6,9 @@#include <array>#include <chrono>#include "common/logging/log.h"+#include "common/settings.h"#include "core/hle/ipc_helpers.h"#include "core/hle/service/set/set.h"-#include "core/settings.h"namespace Service::Set {namespace {diff --git a/src/core/hle/service/spl/module.cpp b/src/core/hle/service/spl/module.cppindex 6903dd534b..b1552c3f00 100644--- a/src/core/hle/service/spl/module.cpp+++ b/src/core/hle/service/spl/module.cpp@@ -9,11 +9,11 @@#include <functional>#include <vector>#include "common/logging/log.h"+#include "common/settings.h"#include "core/hle/ipc_helpers.h"#include "core/hle/service/spl/csrng.h"#include "core/hle/service/spl/module.h"#include "core/hle/service/spl/spl.h"-#include "core/settings.h"namespace Service::SPL {diff --git a/src/core/hle/service/time/time_manager.cpp b/src/core/hle/service/time/time_manager.cppindex 51becd0747..f89c5aaad6 100644--- a/src/core/hle/service/time/time_manager.cpp+++ b/src/core/hle/service/time/time_manager.cpp@@ -5,12 +5,12 @@#include <chrono>#include <ctime>+#include "common/settings.h"#include "common/time_zone.h"#include "core/hle/service/time/ephemeral_network_system_clock_context_writer.h"#include "core/hle/service/time/local_system_clock_context_writer.h"#include "core/hle/service/time/network_system_clock_context_writer.h"#include "core/hle/service/time/time_manager.h"-#include "core/settings.h"namespace Service::Time {diff --git a/src/core/hle/service/time/time_zone_content_manager.cpp b/src/core/hle/service/time/time_zone_content_manager.cppindex 4177d0a414..3c8e71a3cc 100644--- a/src/core/hle/service/time/time_zone_content_manager.cpp+++ b/src/core/hle/service/time/time_zone_content_manager.cpp@@ -5,6 +5,7 @@#include <sstream>#include "common/logging/log.h"+#include "common/settings.h"#include "common/time_zone.h"#include "core/core.h"#include "core/file_sys/content_archive.h"@@ -15,7 +16,6 @@#include "core/hle/service/filesystem/filesystem.h"#include "core/hle/service/time/time_manager.h"#include "core/hle/service/time/time_zone_content_manager.h"-#include "core/settings.h"namespace Service::Time::TimeZone {diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cppindex a1a7ac9870..348360b51d 100644--- a/src/core/hle/service/vi/vi.cpp+++ b/src/core/hle/service/vi/vi.cpp@@ -15,6 +15,7 @@#include "common/common_funcs.h"#include "common/logging/log.h"#include "common/math_util.h"+#include "common/settings.h"#include "common/swap.h"#include "core/core_timing.h"#include "core/hle/ipc_helpers.h"@@ -30,7 +31,6 @@#include "core/hle/service/vi/vi_m.h"#include "core/hle/service/vi/vi_s.h"#include "core/hle/service/vi/vi_u.h"-#include "core/settings.h"namespace Service::VI {diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cppindex 14618cb40a..0115ed0c44 100644--- a/src/core/loader/nro.cpp+++ b/src/core/loader/nro.cpp@@ -9,6 +9,7 @@#include "common/common_types.h"#include "common/file_util.h"#include "common/logging/log.h"+#include "common/settings.h"#include "common/swap.h"#include "core/core.h"#include "core/file_sys/control_metadata.h"@@ -22,7 +23,6 @@#include "core/loader/nro.h"#include "core/loader/nso.h"#include "core/memory.h"-#include "core/settings.h"namespace Loader {diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cppindex cbd0486951..0c83dd666b 100644--- a/src/core/loader/nso.cpp+++ b/src/core/loader/nso.cpp@@ -11,6 +11,7 @@#include "common/hex_util.h"#include "common/logging/log.h"#include "common/lz4_compression.h"+#include "common/settings.h"#include "common/swap.h"#include "core/core.h"#include "core/file_sys/patch_manager.h"@@ -20,7 +21,6 @@#include "core/hle/kernel/process.h"#include "core/loader/nso.h"#include "core/memory.h"-#include "core/settings.h"namespace Loader {namespace {diff --git a/src/core/perf_stats.cpp b/src/core/perf_stats.cppindex b93396a807..c92337079b 100644--- a/src/core/perf_stats.cpp+++ b/src/core/perf_stats.cpp@@ -13,8 +13,8 @@#include <fmt/format.h>#include "common/file_util.h"#include "common/math_util.h"+#include "common/settings.h"#include "core/perf_stats.h"-#include "core/settings.h"using namespace std::chrono_literals;using DoubleSecs = std::chrono::duration<double, std::chrono::seconds::period>;diff --git a/src/core/reporter.cpp b/src/core/reporter.cppindex 74fb328142..311d4dda88 100644--- a/src/core/reporter.cpp+++ b/src/core/reporter.cpp@@ -14,6 +14,7 @@#include "common/file_util.h"#include "common/hex_util.h"#include "common/scm_rev.h"+#include "common/settings.h"#include "core/arm/arm_interface.h"#include "core/core.h"#include "core/hle/kernel/hle_ipc.h"@@ -22,7 +23,6 @@#include "core/hle/result.h"#include "core/memory.h"#include "core/reporter.h"-#include "core/settings.h"namespace {diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cppindex d11b15f382..6dcff54002 100644--- a/src/core/telemetry_session.cpp+++ b/src/core/telemetry_session.cpp@@ -12,10 +12,10 @@#include "common/file_util.h"#include "common/logging/log.h"+#include "common/settings.h"#include "core/file_sys/control_metadata.h"#include "core/file_sys/patch_manager.h"#include "core/loader/loader.h"-#include "core/settings.h"#include "core/telemetry_session.h"#ifdef ENABLE_WEB_SERVICEdiff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txtindex 38ab318985..c3cfe7efc5 100644--- a/src/input_common/CMakeLists.txt+++ b/src/input_common/CMakeLists.txt@@ -9,8 +9,6 @@ add_library(input_common STATICmotion_from_button.hmotion_input.cppmotion_input.h- settings.cpp- settings.htouch_from_button.cpptouch_from_button.hgcadapter/gc_adapter.cppdiff --git a/src/input_common/analog_from_button.cpp b/src/input_common/analog_from_button.cppindex 7708936877..f8ec179d05 100755--- a/src/input_common/analog_from_button.cpp+++ b/src/input_common/analog_from_button.cpp@@ -7,7 +7,7 @@#include <cmath>#include <thread>#include "common/math_util.h"-#include "core/settings.h"+#include "common/settings.h"#include "input_common/analog_from_button.h"namespace InputCommon {diff --git a/src/input_common/gcadapter/gc_adapter.cpp b/src/input_common/gcadapter/gc_adapter.cppindex d80195c827..ec3167beac 100644--- a/src/input_common/gcadapter/gc_adapter.cpp+++ b/src/input_common/gcadapter/gc_adapter.cpp@@ -16,8 +16,8 @@#include "common/logging/log.h"#include "common/param_package.h"+#include "common/settings_input.h"#include "input_common/gcadapter/gc_adapter.h"-#include "input_common/settings.h"namespace GCAdapter {diff --git a/src/input_common/mouse/mouse_input.cpp b/src/input_common/mouse/mouse_input.cppindex 329e416c7e..fff1c6b45e 100644--- a/src/input_common/mouse/mouse_input.cpp+++ b/src/input_common/mouse/mouse_input.cpp@@ -2,7 +2,7 @@// Licensed under GPLv2+// Refer to the license.txt file included.-#include "core/settings.h"+#include "common/settings.h"#include "input_common/mouse/mouse_input.h"namespace MouseInput {diff --git a/src/input_common/mouse/mouse_poller.cpp b/src/input_common/mouse/mouse_poller.cppindex 0e1db54fbb..d96104a4e5 100644--- a/src/input_common/mouse/mouse_poller.cpp+++ b/src/input_common/mouse/mouse_poller.cpp@@ -5,8 +5,8 @@#include <mutex>#include <utility>+#include "common/settings.h"#include "common/threadsafe_queue.h"-#include "core/settings.h"#include "input_common/mouse/mouse_input.h"#include "input_common/mouse/mouse_poller.h"diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cppindex f67de37e39..8bca717316 100644--- a/src/input_common/sdl/sdl_impl.cpp+++ b/src/input_common/sdl/sdl_impl.cpp@@ -20,11 +20,11 @@#include <SDL.h>#include "common/logging/log.h"#include "common/param_package.h"+#include "common/settings_input.h"#include "common/threadsafe_queue.h"#include "core/frontend/input.h"#include "input_common/motion_input.h"#include "input_common/sdl/sdl_impl.h"-#include "input_common/settings.h"namespace InputCommon::SDL {diff --git a/src/input_common/touch_from_button.cpp b/src/input_common/touch_from_button.cppindex ffbe4f2eda..e94ba197be 100644--- a/src/input_common/touch_from_button.cpp+++ b/src/input_common/touch_from_button.cpp@@ -2,8 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/settings.h"#include "core/frontend/framebuffer_layout.h"-#include "core/settings.h"#include "input_common/touch_from_button.h"namespace InputCommon {diff --git a/src/input_common/udp/client.cpp b/src/input_common/udp/client.cppindex e72df924b2..8a38a380de 100644--- a/src/input_common/udp/client.cpp+++ b/src/input_common/udp/client.cpp@@ -9,7 +9,7 @@#include <thread>#include <boost/asio.hpp>#include "common/logging/log.h"-#include "core/settings.h"+#include "common/settings.h"#include "input_common/udp/client.h"#include "input_common/udp/protocol.h"diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.hindex 4de1e37e55..32dcbd693a 100644--- a/src/video_core/buffer_cache/buffer_cache.h+++ b/src/video_core/buffer_cache/buffer_cache.h@@ -20,8 +20,8 @@#include "common/div_ceil.h"#include "common/microprofile.h"#include "common/scope_exit.h"+#include "common/settings.h"#include "core/memory.h"-#include "core/settings.h"#include "video_core/buffer_cache/buffer_base.h"#include "video_core/delayed_destruction_ring.h"#include "video_core/dirty_flags.h"diff --git a/src/video_core/engines/maxwell_dma.cpp b/src/video_core/engines/maxwell_dma.cppindex a2f19559fc..2ee980babd 100644--- a/src/video_core/engines/maxwell_dma.cpp+++ b/src/video_core/engines/maxwell_dma.cpp@@ -4,8 +4,8 @@#include "common/assert.h"#include "common/logging/log.h"+#include "common/settings.h"#include "core/core.h"-#include "core/settings.h"#include "video_core/engines/maxwell_3d.h"#include "video_core/engines/maxwell_dma.h"#include "video_core/memory_manager.h"diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cppindex 009c6f5748..9bdb282d2a 100644--- a/src/video_core/gpu.cpp+++ b/src/video_core/gpu.cpp@@ -6,13 +6,13 @@#include "common/assert.h"#include "common/microprofile.h"+#include "common/settings.h"#include "core/core.h"#include "core/core_timing.h"#include "core/core_timing_util.h"#include "core/frontend/emu_window.h"#include "core/hardware_interrupt_manager.h"#include "core/memory.h"-#include "core/settings.h"#include "video_core/engines/fermi_2d.h"#include "video_core/engines/kepler_compute.h"#include "video_core/engines/kepler_memory.h"diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cppindex 7addfbc7bb..cd1fbb9bff 100644--- a/src/video_core/gpu_thread.cpp+++ b/src/video_core/gpu_thread.cpp@@ -5,10 +5,10 @@#include "common/assert.h"#include "common/microprofile.h"#include "common/scope_exit.h"+#include "common/settings.h"#include "common/thread.h"#include "core/core.h"#include "core/frontend/emu_window.h"-#include "core/settings.h"#include "video_core/dma_pusher.h"#include "video_core/gpu.h"#include "video_core/gpu_thread.h"diff --git a/src/video_core/macro/macro.cpp b/src/video_core/macro/macro.cppindex cd21a21120..d7fabe6055 100644--- a/src/video_core/macro/macro.cpp+++ b/src/video_core/macro/macro.cpp@@ -6,7 +6,7 @@#include <boost/container_hash/hash.hpp>#include "common/assert.h"#include "common/logging/log.h"-#include "core/settings.h"+#include "common/settings.h"#include "video_core/engines/maxwell_3d.h"#include "video_core/macro/macro.h"#include "video_core/macro/macro_hle.h"diff --git a/src/video_core/query_cache.h b/src/video_core/query_cache.hindex 639d7ce7ef..aac8512533 100644--- a/src/video_core/query_cache.h+++ b/src/video_core/query_cache.h@@ -16,8 +16,8 @@#include <vector>#include "common/assert.h"+#include "common/settings.h"#include "core/core.h"-#include "core/settings.h"#include "video_core/engines/maxwell_3d.h"#include "video_core/gpu.h"#include "video_core/memory_manager.h"diff --git a/src/video_core/renderer_base.cpp b/src/video_core/renderer_base.cppindex a93a1732cd..c9a360aaf0 100644--- a/src/video_core/renderer_base.cpp+++ b/src/video_core/renderer_base.cpp@@ -3,8 +3,8 @@// Refer to the license.txt file included.#include "common/logging/log.h"+#include "common/settings.h"#include "core/frontend/emu_window.h"-#include "core/settings.h"#include "video_core/renderer_base.h"namespace VideoCore {diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cppindex 5776fccdc8..b113f54db1 100644--- a/src/video_core/renderer_opengl/gl_device.cpp+++ b/src/video_core/renderer_opengl/gl_device.cpp@@ -16,7 +16,7 @@#include "common/logging/log.h"#include "common/scope_exit.h"-#include "core/settings.h"+#include "common/settings.h"#include "video_core/renderer_opengl/gl_device.h"#include "video_core/renderer_opengl/gl_resource_manager.h"diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cppindex 4610fd1604..0863904e9c 100644--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp@@ -17,10 +17,10 @@#include "common/math_util.h"#include "common/microprofile.h"#include "common/scope_exit.h"+#include "common/settings.h"#include "core/core.h"#include "core/hle/kernel/process.h"#include "core/memory.h"-#include "core/settings.h"#include "video_core/engines/kepler_compute.h"#include "video_core/engines/maxwell_3d.h"#include "video_core/engines/shader_type.h"diff --git a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp b/src/video_core/renderer_opengl/gl_shader_disk_cache.cppindex 955b2abc4d..97fb11ac63 100644--- a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp+++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp@@ -12,10 +12,10 @@#include "common/file_util.h"#include "common/logging/log.h"#include "common/scm_rev.h"+#include "common/settings.h"#include "common/zstd_compression.h"#include "core/core.h"#include "core/hle/kernel/process.h"-#include "core/settings.h"#include "video_core/engines/shader_type.h"#include "video_core/renderer_opengl/gl_shader_cache.h"#include "video_core/renderer_opengl/gl_shader_disk_cache.h"diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cppindex 9d2acd4d9b..cc2e499f92 100644--- a/src/video_core/renderer_opengl/renderer_opengl.cpp+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp@@ -13,13 +13,13 @@#include "common/assert.h"#include "common/logging/log.h"#include "common/microprofile.h"+#include "common/settings.h"#include "common/telemetry.h"#include "core/core.h"#include "core/core_timing.h"#include "core/frontend/emu_window.h"#include "core/memory.h"#include "core/perf_stats.h"-#include "core/settings.h"#include "core/telemetry_session.h"#include "video_core/host_shaders/opengl_present_frag.h"#include "video_core/host_shaders/opengl_present_vert.h"diff --git a/src/video_core/renderer_vulkan/renderer_vulkan.cpp b/src/video_core/renderer_vulkan/renderer_vulkan.cppindex 14e5f36e27..2e0cf42325 100644--- a/src/video_core/renderer_vulkan/renderer_vulkan.cpp+++ b/src/video_core/renderer_vulkan/renderer_vulkan.cpp@@ -13,11 +13,11 @@#include <fmt/format.h>#include "common/logging/log.h"+#include "common/settings.h"#include "common/telemetry.h"#include "core/core.h"#include "core/core_timing.h"#include "core/frontend/emu_window.h"-#include "core/settings.h"#include "core/telemetry_session.h"#include "video_core/gpu.h"#include "video_core/renderer_vulkan/renderer_vulkan.h"diff --git a/src/video_core/renderer_vulkan/vk_master_semaphore.cpp b/src/video_core/renderer_vulkan/vk_master_semaphore.cppindex 56ec5e3808..db78ce3d91 100644--- a/src/video_core/renderer_vulkan/vk_master_semaphore.cpp+++ b/src/video_core/renderer_vulkan/vk_master_semaphore.cpp@@ -5,7 +5,7 @@#include <atomic>#include <chrono>-#include "core/settings.h"+#include "common/settings.h"#include "video_core/renderer_vulkan/vk_master_semaphore.h"#include "video_core/vulkan_common/vulkan_device.h"#include "video_core/vulkan_common/vulkan_wrapper.h"diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cppindex df5b7b172f..e9a0e78118 100644--- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp+++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp@@ -13,8 +13,8 @@#include "common/logging/log.h"#include "common/microprofile.h"#include "common/scope_exit.h"+#include "common/settings.h"#include "core/core.h"-#include "core/settings.h"#include "video_core/engines/kepler_compute.h"#include "video_core/engines/maxwell_3d.h"#include "video_core/renderer_vulkan/blit_image.h"diff --git a/src/video_core/texture_cache/image_view_base.cpp b/src/video_core/texture_cache/image_view_base.cppindex f89a40b4c4..e8d632f9e5 100644--- a/src/video_core/texture_cache/image_view_base.cpp+++ b/src/video_core/texture_cache/image_view_base.cpp@@ -5,7 +5,7 @@#include <algorithm>#include "common/assert.h"-#include "core/settings.h"+#include "common/settings.h"#include "video_core/compatible_formats.h"#include "video_core/surface.h"#include "video_core/texture_cache/formatter.h"diff --git a/src/video_core/textures/texture.cpp b/src/video_core/textures/texture.cppindex ae5621a7d1..a552543edc 100644--- a/src/video_core/textures/texture.cpp+++ b/src/video_core/textures/texture.cpp@@ -6,7 +6,7 @@#include <array>#include "common/cityhash.h"-#include "core/settings.h"+#include "common/settings.h"#include "video_core/textures/texture.h"using Tegra::Texture::TICEntry;diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cppindex e1b38c6acf..3b575db4d8 100644--- a/src/video_core/video_core.cpp+++ b/src/video_core/video_core.cpp@@ -5,8 +5,8 @@#include <memory>#include "common/logging/log.h"+#include "common/settings.h"#include "core/core.h"-#include "core/settings.h"#include "video_core/renderer_base.h"#include "video_core/renderer_opengl/renderer_opengl.h"#include "video_core/renderer_vulkan/renderer_vulkan.h"diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cppindex 230b8717b6..64206b3d29 100644--- a/src/video_core/vulkan_common/vulkan_device.cpp+++ b/src/video_core/vulkan_common/vulkan_device.cpp@@ -12,7 +12,7 @@#include <vector>#include "common/assert.h"-#include "core/settings.h"+#include "common/settings.h"#include "video_core/vulkan_common/nsight_aftermath_tracker.h"#include "video_core/vulkan_common/vulkan_device.h"#include "video_core/vulkan_common/vulkan_wrapper.h"diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cppindex 15c09e0ad5..9c7daeac73 100644--- a/src/yuzu/bootmanager.cpp+++ b/src/yuzu/bootmanager.cpp@@ -29,10 +29,10 @@#include "common/microprofile.h"#include "common/scm_rev.h"#include "common/scope_exit.h"+#include "common/settings.h"#include "core/core.h"#include "core/frontend/framebuffer_layout.h"#include "core/hle/kernel/process.h"-#include "core/settings.h"#include "input_common/keyboard.h"#include "input_common/main.h"#include "input_common/mouse/mouse_input.h"diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cppindex 16ea2b5f57..8512462331 100644--- a/src/yuzu/configuration/config.cpp+++ b/src/yuzu/configuration/config.cpp@@ -1602,7 +1602,7 @@ void Config::Reload() {ReadValues();// To apply default value changesSaveValues();- Settings::Apply(Core::System::GetInstance());+ Core::System::GetInstance().ApplySettings();}void Config::Save() {diff --git a/src/yuzu/configuration/config.h b/src/yuzu/configuration/config.hindex 949c4eb134..5a2c026b35 100644--- a/src/yuzu/configuration/config.h+++ b/src/yuzu/configuration/config.h@@ -9,7 +9,7 @@#include <string>#include <QMetaType>#include <QVariant>-#include "core/settings.h"+#include "common/settings.h"#include "yuzu/uisettings.h"class QSettings;@@ -131,6 +131,6 @@ private:bool global;};-// These metatype declarations cannot be in core/settings.h because core is devoid of QT+// These metatype declarations cannot be in common/settings.h because core is devoid of QTQ_DECLARE_METATYPE(Settings::RendererBackend);Q_DECLARE_METATYPE(Settings::GPUAccuracy);diff --git a/src/yuzu/configuration/configuration_shared.cpp b/src/yuzu/configuration/configuration_shared.cppindex 18482795cf..89be4a62d6 100644--- a/src/yuzu/configuration/configuration_shared.cpp+++ b/src/yuzu/configuration/configuration_shared.cpp@@ -6,7 +6,7 @@#include <QComboBox>#include <QObject>#include <QString>-#include "core/settings.h"+#include "common/settings.h"#include "yuzu/configuration/configuration_shared.h"#include "yuzu/configuration/configure_per_game.h"diff --git a/src/yuzu/configuration/configuration_shared.h b/src/yuzu/configuration/configuration_shared.hindex 312b9e5490..5b344cdbd2 100644--- a/src/yuzu/configuration/configuration_shared.h+++ b/src/yuzu/configuration/configuration_shared.h@@ -7,7 +7,7 @@#include <QCheckBox>#include <QComboBox>#include <QString>-#include "core/settings.h"+#include "common/settings.h"namespace ConfigurationShared {diff --git a/src/yuzu/configuration/configure_audio.cpp b/src/yuzu/configuration/configure_audio.cppindex db9518798f..f9507e228f 100644--- a/src/yuzu/configuration/configure_audio.cpp+++ b/src/yuzu/configuration/configure_audio.cpp@@ -8,8 +8,8 @@#include "audio_core/sink.h"#include "audio_core/sink_details.h"+#include "common/settings.h"#include "core/core.h"-#include "core/settings.h"#include "ui_configure_audio.h"#include "yuzu/configuration/configuration_shared.h"#include "yuzu/configuration/configure_audio.h"diff --git a/src/yuzu/configuration/configure_cpu.cpp b/src/yuzu/configuration/configure_cpu.cppindex d055cbd601..4f99bc80fa 100644--- a/src/yuzu/configuration/configure_cpu.cpp+++ b/src/yuzu/configuration/configure_cpu.cpp@@ -7,8 +7,8 @@#include "common/common_types.h"#include "common/logging/log.h"+#include "common/settings.h"#include "core/core.h"-#include "core/settings.h"#include "ui_configure_cpu.h"#include "yuzu/configuration/configure_cpu.h"diff --git a/src/yuzu/configuration/configure_cpu.h b/src/yuzu/configuration/configure_cpu.hindex 3c5683d812..ef77b2e7e3 100644--- a/src/yuzu/configuration/configure_cpu.h+++ b/src/yuzu/configuration/configure_cpu.h@@ -6,7 +6,7 @@#include <memory>#include <QWidget>-#include "core/settings.h"+#include "common/settings.h"namespace Ui {class ConfigureCpu;diff --git a/src/yuzu/configuration/configure_cpu_debug.cpp b/src/yuzu/configuration/configure_cpu_debug.cppindex 3385b2cf6e..c925c023c4 100644--- a/src/yuzu/configuration/configure_cpu_debug.cpp+++ b/src/yuzu/configuration/configure_cpu_debug.cpp@@ -6,8 +6,8 @@#include "common/common_types.h"#include "common/logging/log.h"+#include "common/settings.h"#include "core/core.h"-#include "core/settings.h"#include "ui_configure_cpu_debug.h"#include "yuzu/configuration/configure_cpu_debug.h"diff --git a/src/yuzu/configuration/configure_cpu_debug.h b/src/yuzu/configuration/configure_cpu_debug.hindex c9941ef3b1..10de550997 100644--- a/src/yuzu/configuration/configure_cpu_debug.h+++ b/src/yuzu/configuration/configure_cpu_debug.h@@ -6,7 +6,7 @@#include <memory>#include <QWidget>-#include "core/settings.h"+#include "common/settings.h"namespace Ui {class ConfigureCpuDebug;diff --git a/src/yuzu/configuration/configure_debug.cpp b/src/yuzu/configuration/configure_debug.cppindex db8fdc5957..ac8bd40193 100644--- a/src/yuzu/configuration/configure_debug.cpp+++ b/src/yuzu/configuration/configure_debug.cpp@@ -7,8 +7,8 @@#include "common/file_util.h"#include "common/logging/backend.h"#include "common/logging/filter.h"+#include "common/settings.h"#include "core/core.h"-#include "core/settings.h"#include "ui_configure_debug.h"#include "yuzu/configuration/configure_debug.h"#include "yuzu/debugger/console.h"diff --git a/src/yuzu/configuration/configure_dialog.cpp b/src/yuzu/configuration/configure_dialog.cppindex d6b17a28d0..3ad40d2b32 100644--- a/src/yuzu/configuration/configure_dialog.cpp+++ b/src/yuzu/configuration/configure_dialog.cpp@@ -5,8 +5,8 @@#include <QHash>#include <QListWidgetItem>#include <QSignalBlocker>+#include "common/settings.h"#include "core/core.h"-#include "core/settings.h"#include "ui_configure.h"#include "yuzu/configuration/config.h"#include "yuzu/configuration/configure_dialog.h"@@ -55,7 +55,7 @@ void ConfigureDialog::ApplyConfiguration() {ui->debugTab->ApplyConfiguration();ui->webTab->ApplyConfiguration();ui->serviceTab->ApplyConfiguration();- Settings::Apply(Core::System::GetInstance());+ Core::System::GetInstance().ApplySettings();Settings::LogSettings();}diff --git a/src/yuzu/configuration/configure_filesystem.cpp b/src/yuzu/configuration/configure_filesystem.cppindex 58f644af43..006eda4b00 100644--- a/src/yuzu/configuration/configure_filesystem.cpp+++ b/src/yuzu/configuration/configure_filesystem.cpp@@ -6,7 +6,7 @@#include <QMessageBox>#include "common/common_paths.h"#include "common/file_util.h"-#include "core/settings.h"+#include "common/settings.h"#include "ui_configure_filesystem.h"#include "yuzu/configuration/configure_filesystem.h"#include "yuzu/uisettings.h"diff --git a/src/yuzu/configuration/configure_general.cpp b/src/yuzu/configuration/configure_general.cppindex d4d29d4227..2fa88dcec3 100644--- a/src/yuzu/configuration/configure_general.cpp+++ b/src/yuzu/configuration/configure_general.cpp@@ -4,8 +4,8 @@#include <QCheckBox>#include <QSpinBox>+#include "common/settings.h"#include "core/core.h"-#include "core/settings.h"#include "ui_configure_general.h"#include "yuzu/configuration/configuration_shared.h"#include "yuzu/configuration/configure_general.h"diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cppindex 8a2008b2a9..0a7536617d 100644--- a/src/yuzu/configuration/configure_graphics.cpp+++ b/src/yuzu/configuration/configure_graphics.cpp@@ -11,8 +11,8 @@#include "common/common_types.h"#include "common/logging/log.h"+#include "common/settings.h"#include "core/core.h"-#include "core/settings.h"#include "ui_configure_graphics.h"#include "video_core/vulkan_common/vulkan_instance.h"#include "video_core/vulkan_common/vulkan_library.h"diff --git a/src/yuzu/configuration/configure_graphics.h b/src/yuzu/configuration/configure_graphics.hindex 1fefc88eb0..c162048a28 100644--- a/src/yuzu/configuration/configure_graphics.h+++ b/src/yuzu/configuration/configure_graphics.h@@ -8,7 +8,7 @@#include <vector>#include <QString>#include <QWidget>-#include "core/settings.h"+#include "common/settings.h"namespace ConfigurationShared {enum class CheckState;diff --git a/src/yuzu/configuration/configure_graphics_advanced.cpp b/src/yuzu/configuration/configure_graphics_advanced.cppindex 383c7bac8a..c67609b0e4 100644--- a/src/yuzu/configuration/configure_graphics_advanced.cpp+++ b/src/yuzu/configuration/configure_graphics_advanced.cpp@@ -2,8 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/settings.h"#include "core/core.h"-#include "core/settings.h"#include "ui_configure_graphics_advanced.h"#include "yuzu/configuration/configuration_shared.h"#include "yuzu/configuration/configure_graphics_advanced.h"diff --git a/src/yuzu/configuration/configure_hotkeys.cpp b/src/yuzu/configuration/configure_hotkeys.cppindex cbee51a5ee..ed76fe18e7 100644--- a/src/yuzu/configuration/configure_hotkeys.cpp+++ b/src/yuzu/configuration/configure_hotkeys.cpp@@ -5,7 +5,7 @@#include <QMenu>#include <QMessageBox>#include <QStandardItemModel>-#include "core/settings.h"+#include "common/settings.h"#include "ui_configure_hotkeys.h"#include "yuzu/configuration/config.h"#include "yuzu/configuration/configure_hotkeys.h"diff --git a/src/yuzu/configuration/configure_input_advanced.cpp b/src/yuzu/configuration/configure_input_advanced.cppindex a1a0eb676c..d8d3b83dc7 100644--- a/src/yuzu/configuration/configure_input_advanced.cpp+++ b/src/yuzu/configuration/configure_input_advanced.cpp@@ -3,8 +3,8 @@// Refer to the license.txt file included.#include <QColorDialog>+#include "common/settings.h"#include "core/core.h"-#include "core/settings.h"#include "ui_configure_input_advanced.h"#include "yuzu/configuration/configure_input_advanced.h"diff --git a/src/yuzu/configuration/configure_input_player.h b/src/yuzu/configuration/configure_input_player.hindex efe953fbc9..c7d1016825 100644--- a/src/yuzu/configuration/configure_input_player.h+++ b/src/yuzu/configuration/configure_input_player.h@@ -14,7 +14,7 @@#include <QWidget>#include "common/param_package.h"-#include "core/settings.h"+#include "common/settings.h"#include "ui_configure_input.h"class QCheckBox;diff --git a/src/yuzu/configuration/configure_input_player_widget.h b/src/yuzu/configuration/configure_input_player_widget.hindex 91c3343f15..51bb84eb67 100644--- a/src/yuzu/configuration/configure_input_player_widget.h+++ b/src/yuzu/configuration/configure_input_player_widget.h@@ -7,8 +7,8 @@#include <array>#include <QFrame>#include <QPointer>+#include "common/settings.h"#include "core/frontend/input.h"-#include "core/settings.h"class QLabel;diff --git a/src/yuzu/configuration/configure_motion_touch.cpp b/src/yuzu/configuration/configure_motion_touch.cppindex 083d1ea43d..6a5d625dfd 100644--- a/src/yuzu/configuration/configure_motion_touch.cpp+++ b/src/yuzu/configuration/configure_motion_touch.cpp@@ -14,7 +14,7 @@#include <QVBoxLayout>#include "common/logging/log.h"-#include "core/settings.h"+#include "common/settings.h"#include "input_common/main.h"#include "input_common/udp/client.h"#include "input_common/udp/udp.h"diff --git a/src/yuzu/configuration/configure_per_game.cpp b/src/yuzu/configuration/configure_per_game.cppindex f598513df8..bd91ebc423 100644--- a/src/yuzu/configuration/configure_per_game.cpp+++ b/src/yuzu/configuration/configure_per_game.cpp@@ -57,7 +57,7 @@ void ConfigurePerGame::ApplyConfiguration() {ui->graphicsAdvancedTab->ApplyConfiguration();ui->audioTab->ApplyConfiguration();- Settings::Apply(Core::System::GetInstance());+ Core::System::GetInstance().ApplySettings();Settings::LogSettings();game_config->Save();diff --git a/src/yuzu/configuration/configure_profile_manager.cpp b/src/yuzu/configuration/configure_profile_manager.cppindex 51647a0284..d61b5e29b1 100644--- a/src/yuzu/configuration/configure_profile_manager.cpp+++ b/src/yuzu/configuration/configure_profile_manager.cpp@@ -13,10 +13,10 @@#include <QVBoxLayout>#include "common/assert.h"#include "common/file_util.h"+#include "common/settings.h"#include "common/string_util.h"#include "core/core.h"#include "core/hle/service/acc/profile_manager.h"-#include "core/settings.h"#include "ui_configure_profile_manager.h"#include "yuzu/configuration/configure_profile_manager.h"#include "yuzu/util/limitable_input_dialog.h"@@ -180,7 +180,7 @@ void ConfigureProfileManager::ApplyConfiguration() {return;}- Settings::Apply(Core::System::GetInstance());+ Core::System::GetInstance().ApplySettings();}void ConfigureProfileManager::SelectUser(const QModelIndex& index) {diff --git a/src/yuzu/configuration/configure_service.cpp b/src/yuzu/configuration/configure_service.cppindex b580cfff2e..6d954a67f6 100644--- a/src/yuzu/configuration/configure_service.cpp+++ b/src/yuzu/configuration/configure_service.cpp@@ -4,8 +4,8 @@#include <QGraphicsItem>#include <QtConcurrent/QtConcurrent>+#include "common/settings.h"#include "core/hle/service/bcat/backend/boxcat.h"-#include "core/settings.h"#include "ui_configure_service.h"#include "yuzu/configuration/configure_service.h"diff --git a/src/yuzu/configuration/configure_system.cpp b/src/yuzu/configuration/configure_system.cppindex 6cf2032da0..268ed44c36 100644--- a/src/yuzu/configuration/configure_system.cpp+++ b/src/yuzu/configuration/configure_system.cpp@@ -11,9 +11,9 @@#include <QMessageBox>#include "common/assert.h"#include "common/file_util.h"+#include "common/settings.h"#include "core/core.h"#include "core/hle/service/time/time.h"-#include "core/settings.h"#include "ui_configure_system.h"#include "yuzu/configuration/configuration_shared.h"#include "yuzu/configuration/configure_system.h"@@ -199,7 +199,7 @@ void ConfigureSystem::ApplyConfiguration() {}}- Settings::Apply(system);+ system.ApplySettings();}void ConfigureSystem::RefreshConsoleID() {diff --git a/src/yuzu/configuration/configure_touch_from_button.cpp b/src/yuzu/configuration/configure_touch_from_button.cppindex 15557e4b8c..40129f2289 100644--- a/src/yuzu/configuration/configure_touch_from_button.cpp+++ b/src/yuzu/configuration/configure_touch_from_button.cpp@@ -10,8 +10,8 @@#include <QStandardItemModel>#include <QTimer>#include "common/param_package.h"+#include "common/settings.h"#include "core/frontend/framebuffer_layout.h"-#include "core/settings.h"#include "input_common/main.h"#include "ui_configure_touch_from_button.h"#include "yuzu/configuration/configure_touch_from_button.h"diff --git a/src/yuzu/configuration/configure_ui.cpp b/src/yuzu/configuration/configure_ui.cppindex aed8760087..f35c89e048 100644--- a/src/yuzu/configuration/configure_ui.cpp+++ b/src/yuzu/configuration/configure_ui.cpp@@ -9,8 +9,8 @@#include <QDirIterator>#include "common/common_types.h"#include "common/file_util.h"+#include "common/settings.h"#include "core/core.h"-#include "core/settings.h"#include "ui_configure_ui.h"#include "yuzu/configuration/configure_ui.h"#include "yuzu/uisettings.h"@@ -85,7 +85,7 @@ void ConfigureUi::ApplyConfiguration() {UISettings::values.enable_screenshot_save_as = ui->enable_screenshot_save_as->isChecked();Common::FS::GetUserPath(Common::FS::UserPath::ScreenshotsDir,ui->screenshot_path_edit->text().toStdString());- Settings::Apply(Core::System::GetInstance());+ Core::System::GetInstance().ApplySettings();}void ConfigureUi::RequestGameListUpdate() {diff --git a/src/yuzu/configuration/configure_vibration.cpp b/src/yuzu/configuration/configure_vibration.cppindex 7dcb2c5b93..9d92c49495 100644--- a/src/yuzu/configuration/configure_vibration.cpp+++ b/src/yuzu/configuration/configure_vibration.cpp@@ -8,7 +8,7 @@#include <fmt/format.h>#include "common/param_package.h"-#include "core/settings.h"+#include "common/settings.h"#include "ui_configure_vibration.h"#include "yuzu/configuration/configure_vibration.h"diff --git a/src/yuzu/configuration/configure_web.cpp b/src/yuzu/configuration/configure_web.cppindex 8637f5b3c1..f3f3b54d63 100644--- a/src/yuzu/configuration/configure_web.cpp+++ b/src/yuzu/configuration/configure_web.cpp@@ -5,7 +5,7 @@#include <QIcon>#include <QMessageBox>#include <QtConcurrent/QtConcurrentRun>-#include "core/settings.h"+#include "common/settings.h"#include "core/telemetry_session.h"#include "ui_configure_web.h"#include "yuzu/configuration/configure_web.h"diff --git a/src/yuzu/debugger/controller.cpp b/src/yuzu/debugger/controller.cppindex 2731d948d7..7186eac76a 100644--- a/src/yuzu/debugger/controller.cpp+++ b/src/yuzu/debugger/controller.cpp@@ -5,7 +5,7 @@#include <QAction>#include <QLayout>#include <QString>-#include "core/settings.h"+#include "common/settings.h"#include "yuzu/configuration/configure_input_player_widget.h"#include "yuzu/debugger/controller.h"diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cppindex 23ea4983db..0822b1d11a 100644--- a/src/yuzu/main.cpp+++ b/src/yuzu/main.cpp@@ -79,6 +79,7 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual#ifdef ARCHITECTURE_x86_64#include "common/x64/cpu_detect.h"#endif+#include "common/settings.h"#include "common/telemetry.h"#include "core/core.h"#include "core/crypto/key_manager.h"@@ -98,7 +99,6 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual#include "core/hle/service/sm/sm.h"#include "core/loader/loader.h"#include "core/perf_stats.h"-#include "core/settings.h"#include "core/telemetry_session.h"#include "input_common/main.h"#include "video_core/gpu.h"@@ -164,7 +164,7 @@ void GMainWindow::ShowTelemetryCallout() {"<br/><br/>Would you like to share your usage data with us?");if (QMessageBox::question(this, tr("Telemetry"), telemetry_message) != QMessageBox::Yes) {Settings::values.enable_telemetry = false;- Settings::Apply(Core::System::GetInstance());+ Core::System::GetInstance().ApplySettings();}}@@ -385,7 +385,7 @@ void GMainWindow::ControllerSelectorReconfigureControllers(emit ControllerSelectorReconfigureFinished();// Don't forget to apply settings.- Settings::Apply(Core::System::GetInstance());+ Core::System::GetInstance().ApplySettings();config->Save();UpdateStatusButtons();@@ -650,7 +650,7 @@ void GMainWindow::InitializeWidgets() {Settings::values.use_asynchronous_gpu_emulation.SetValue(!Settings::values.use_asynchronous_gpu_emulation.GetValue());async_status_button->setChecked(Settings::values.use_asynchronous_gpu_emulation.GetValue());- Settings::Apply(Core::System::GetInstance());+ Core::System::GetInstance().ApplySettings();});async_status_button->setText(tr("ASYNC"));async_status_button->setCheckable(true);@@ -666,7 +666,7 @@ void GMainWindow::InitializeWidgets() {}Settings::values.use_multi_core.SetValue(!Settings::values.use_multi_core.GetValue());multicore_status_button->setChecked(Settings::values.use_multi_core.GetValue());- Settings::Apply(Core::System::GetInstance());+ Core::System::GetInstance().ApplySettings();});multicore_status_button->setText(tr("MULTICORE"));multicore_status_button->setCheckable(true);@@ -697,7 +697,7 @@ void GMainWindow::InitializeWidgets() {Settings::values.renderer_backend.SetValue(Settings::RendererBackend::OpenGL);}- Settings::Apply(Core::System::GetInstance());+ Core::System::GetInstance().ApplySettings();});statusBar()->insertPermanentWidget(0, renderer_status_button);diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cppindex 69732ee510..2f984d1b86 100644--- a/src/yuzu_cmd/config.cpp+++ b/src/yuzu_cmd/config.cpp@@ -9,8 +9,8 @@#include "common/file_util.h"#include "common/logging/log.h"#include "common/param_package.h"+#include "common/settings.h"#include "core/hle/service/acc/profile_manager.h"-#include "core/settings.h"#include "input_common/main.h"#include "input_common/udp/client.h"#include "yuzu_cmd/config.h"diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cppindex a02485c14e..a765fa7b3a 100644--- a/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp@@ -12,9 +12,9 @@#include "common/assert.h"#include "common/logging/log.h"#include "common/scm_rev.h"+#include "common/settings.h"#include "common/string_util.h"#include "core/core.h"-#include "core/settings.h"#include "input_common/keyboard.h"#include "input_common/main.h"#include "video_core/renderer_base.h"diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cppindex 6f9b00461d..dfd53e2858 100644--- a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp@@ -11,7 +11,7 @@#include "common/assert.h"#include "common/logging/log.h"#include "common/scm_rev.h"-#include "core/settings.h"+#include "common/settings.h"#include "video_core/renderer_vulkan/renderer_vulkan.h"#include "yuzu_cmd/emu_window/emu_window_sdl2_vk.h"diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cppindex 982c417859..b431db6598 100644--- a/src/yuzu_cmd/yuzu.cpp+++ b/src/yuzu_cmd/yuzu.cpp@@ -20,6 +20,7 @@#include "common/nvidia_flags.h"#include "common/scm_rev.h"#include "common/scope_exit.h"+#include "common/settings.h"#include "common/string_util.h"#include "common/telemetry.h"#include "core/core.h"@@ -29,7 +30,6 @@#include "core/hle/kernel/process.h"#include "core/hle/service/filesystem/filesystem.h"#include "core/loader/loader.h"-#include "core/settings.h"#include "core/telemetry_session.h"#include "input_common/main.h"#include "video_core/renderer_base.h"@@ -164,7 +164,7 @@ int main(int argc, char** argv) {InputCommon::InputSubsystem input_subsystem;// Apply the command line arguments- Settings::Apply(system);+ system.ApplySettings();std::unique_ptr<EmuWindow_SDL2> emu_window;switch (Settings::values.renderer_backend.GetValue()) {