diff options
| author | 2021-04-14 16:07:40 -0700 | |
|---|---|---|
| committer | 2021-04-14 16:24:03 -0700 | |
| commit | a4c6712a4be249bf668df7f0ff83a0a5236283b2 (patch) | |
| tree | f05e183692b6b1e4096d285fb77db50f048ae82d /src/core | |
| parent | core: settings: Add setting for debug assertions and disable by default. (diff) | |
| download | yuzu-a4c6712a4be249bf668df7f0ff83a0a5236283b2.tar.gz yuzu-a4c6712a4be249bf668df7f0ff83a0a5236283b2.tar.xz yuzu-a4c6712a4be249bf668df7f0ff83a0a5236283b2.zip | |
common: Move settings to common from core.
- Removes a dependency on core and input_common from common.
Diffstat (limited to 'src/core')
45 files changed, 53 insertions, 462 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 167ee13f3..286e912e3 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -621,8 +621,6 @@ add_library(core STATIC | |||
| 621 | perf_stats.h | 621 | perf_stats.h |
| 622 | reporter.cpp | 622 | reporter.cpp |
| 623 | reporter.h | 623 | reporter.h |
| 624 | settings.cpp | ||
| 625 | settings.h | ||
| 626 | telemetry_session.cpp | 624 | telemetry_session.cpp |
| 627 | telemetry_session.h | 625 | telemetry_session.h |
| 628 | tools/freezer.cpp | 626 | tools/freezer.cpp |
diff --git a/src/core/arm/dynarmic/arm_dynarmic_32.cpp b/src/core/arm/dynarmic/arm_dynarmic_32.cpp index 08d889135..7aeb2a658 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_32.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic_32.cpp | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #include "common/assert.h" | 10 | #include "common/assert.h" |
| 11 | #include "common/logging/log.h" | 11 | #include "common/logging/log.h" |
| 12 | #include "common/page_table.h" | 12 | #include "common/page_table.h" |
| 13 | #include "common/settings.h" | ||
| 13 | #include "core/arm/cpu_interrupt_handler.h" | 14 | #include "core/arm/cpu_interrupt_handler.h" |
| 14 | #include "core/arm/dynarmic/arm_dynarmic_32.h" | 15 | #include "core/arm/dynarmic/arm_dynarmic_32.h" |
| 15 | #include "core/arm/dynarmic/arm_dynarmic_cp15.h" | 16 | #include "core/arm/dynarmic/arm_dynarmic_cp15.h" |
| @@ -18,7 +19,6 @@ | |||
| 18 | #include "core/core_timing.h" | 19 | #include "core/core_timing.h" |
| 19 | #include "core/hle/kernel/svc.h" | 20 | #include "core/hle/kernel/svc.h" |
| 20 | #include "core/memory.h" | 21 | #include "core/memory.h" |
| 21 | #include "core/settings.h" | ||
| 22 | 22 | ||
| 23 | namespace Core { | 23 | namespace Core { |
| 24 | 24 | ||
diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.cpp b/src/core/arm/dynarmic/arm_dynarmic_64.cpp index e12e50658..040529f4d 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_64.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic_64.cpp | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | #include "common/assert.h" | 9 | #include "common/assert.h" |
| 10 | #include "common/logging/log.h" | 10 | #include "common/logging/log.h" |
| 11 | #include "common/page_table.h" | 11 | #include "common/page_table.h" |
| 12 | #include "common/settings.h" | ||
| 12 | #include "core/arm/cpu_interrupt_handler.h" | 13 | #include "core/arm/cpu_interrupt_handler.h" |
| 13 | #include "core/arm/dynarmic/arm_dynarmic_64.h" | 14 | #include "core/arm/dynarmic/arm_dynarmic_64.h" |
| 14 | #include "core/arm/dynarmic/arm_exclusive_monitor.h" | 15 | #include "core/arm/dynarmic/arm_exclusive_monitor.h" |
| @@ -19,7 +20,6 @@ | |||
| 19 | #include "core/hle/kernel/process.h" | 20 | #include "core/hle/kernel/process.h" |
| 20 | #include "core/hle/kernel/svc.h" | 21 | #include "core/hle/kernel/svc.h" |
| 21 | #include "core/memory.h" | 22 | #include "core/memory.h" |
| 22 | #include "core/settings.h" | ||
| 23 | 23 | ||
| 24 | namespace Core { | 24 | namespace Core { |
| 25 | 25 | ||
diff --git a/src/core/core.cpp b/src/core/core.cpp index 56b47e671..d459d6c34 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | #include "common/file_util.h" | 9 | #include "common/file_util.h" |
| 10 | #include "common/logging/log.h" | 10 | #include "common/logging/log.h" |
| 11 | #include "common/microprofile.h" | 11 | #include "common/microprofile.h" |
| 12 | #include "common/settings.h" | ||
| 12 | #include "common/string_util.h" | 13 | #include "common/string_util.h" |
| 13 | #include "core/arm/exclusive_monitor.h" | 14 | #include "core/arm/exclusive_monitor.h" |
| 14 | #include "core/core.h" | 15 | #include "core/core.h" |
| @@ -36,6 +37,7 @@ | |||
| 36 | #include "core/hle/service/apm/controller.h" | 37 | #include "core/hle/service/apm/controller.h" |
| 37 | #include "core/hle/service/filesystem/filesystem.h" | 38 | #include "core/hle/service/filesystem/filesystem.h" |
| 38 | #include "core/hle/service/glue/manager.h" | 39 | #include "core/hle/service/glue/manager.h" |
| 40 | #include "core/hle/service/hid/hid.h" | ||
| 39 | #include "core/hle/service/service.h" | 41 | #include "core/hle/service/service.h" |
| 40 | #include "core/hle/service/sm/sm.h" | 42 | #include "core/hle/service/sm/sm.h" |
| 41 | #include "core/hle/service/time/time_manager.h" | 43 | #include "core/hle/service/time/time_manager.h" |
| @@ -45,7 +47,6 @@ | |||
| 45 | #include "core/network/network.h" | 47 | #include "core/network/network.h" |
| 46 | #include "core/perf_stats.h" | 48 | #include "core/perf_stats.h" |
| 47 | #include "core/reporter.h" | 49 | #include "core/reporter.h" |
| 48 | #include "core/settings.h" | ||
| 49 | #include "core/telemetry_session.h" | 50 | #include "core/telemetry_session.h" |
| 50 | #include "core/tools/freezer.h" | 51 | #include "core/tools/freezer.h" |
| 51 | #include "video_core/renderer_base.h" | 52 | #include "video_core/renderer_base.h" |
| @@ -774,4 +775,12 @@ void System::ExecuteProgram(std::size_t program_index) { | |||
| 774 | } | 775 | } |
| 775 | } | 776 | } |
| 776 | 777 | ||
| 778 | void System::ApplySettings() { | ||
| 779 | if (IsPoweredOn()) { | ||
| 780 | Renderer().RefreshBaseSettings(); | ||
| 781 | } | ||
| 782 | |||
| 783 | Service::HID::ReloadInputDevices(); | ||
| 784 | } | ||
| 785 | |||
| 777 | } // namespace Core | 786 | } // namespace Core |
diff --git a/src/core/core.h b/src/core/core.h index 3a8e040c1..f1068d23f 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -388,6 +388,9 @@ public: | |||
| 388 | */ | 388 | */ |
| 389 | void ExecuteProgram(std::size_t program_index); | 389 | void ExecuteProgram(std::size_t program_index); |
| 390 | 390 | ||
| 391 | /// Applies any changes to settings to this core instance. | ||
| 392 | void ApplySettings(); | ||
| 393 | |||
| 391 | private: | 394 | private: |
| 392 | System(); | 395 | System(); |
| 393 | 396 | ||
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp index ad116dcc0..070ed439e 100644 --- a/src/core/crypto/key_manager.cpp +++ b/src/core/crypto/key_manager.cpp | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | #include "common/file_util.h" | 22 | #include "common/file_util.h" |
| 23 | #include "common/hex_util.h" | 23 | #include "common/hex_util.h" |
| 24 | #include "common/logging/log.h" | 24 | #include "common/logging/log.h" |
| 25 | #include "common/settings.h" | ||
| 25 | #include "common/string_util.h" | 26 | #include "common/string_util.h" |
| 26 | #include "core/crypto/aes_util.h" | 27 | #include "core/crypto/aes_util.h" |
| 27 | #include "core/crypto/key_manager.h" | 28 | #include "core/crypto/key_manager.h" |
| @@ -32,7 +33,6 @@ | |||
| 32 | #include "core/file_sys/registered_cache.h" | 33 | #include "core/file_sys/registered_cache.h" |
| 33 | #include "core/hle/service/filesystem/filesystem.h" | 34 | #include "core/hle/service/filesystem/filesystem.h" |
| 34 | #include "core/loader/loader.h" | 35 | #include "core/loader/loader.h" |
| 35 | #include "core/settings.h" | ||
| 36 | 36 | ||
| 37 | namespace Core::Crypto { | 37 | namespace Core::Crypto { |
| 38 | namespace { | 38 | namespace { |
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 7c3284df8..cc9b4b637 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #include "common/file_util.h" | 10 | #include "common/file_util.h" |
| 11 | #include "common/hex_util.h" | 11 | #include "common/hex_util.h" |
| 12 | #include "common/logging/log.h" | 12 | #include "common/logging/log.h" |
| 13 | #include "common/settings.h" | ||
| 13 | #include "common/string_util.h" | 14 | #include "common/string_util.h" |
| 14 | #include "core/core.h" | 15 | #include "core/core.h" |
| 15 | #include "core/file_sys/common_funcs.h" | 16 | #include "core/file_sys/common_funcs.h" |
| @@ -25,7 +26,6 @@ | |||
| 25 | #include "core/loader/loader.h" | 26 | #include "core/loader/loader.h" |
| 26 | #include "core/loader/nso.h" | 27 | #include "core/loader/nso.h" |
| 27 | #include "core/memory/cheat_engine.h" | 28 | #include "core/memory/cheat_engine.h" |
| 28 | #include "core/settings.h" | ||
| 29 | 29 | ||
| 30 | namespace FileSys { | 30 | namespace FileSys { |
| 31 | namespace { | 31 | namespace { |
diff --git a/src/core/frontend/applets/profile_select.cpp b/src/core/frontend/applets/profile_select.cpp index 4df3574d2..8d960d1ca 100644 --- a/src/core/frontend/applets/profile_select.cpp +++ b/src/core/frontend/applets/profile_select.cpp | |||
| @@ -2,9 +2,9 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/settings.h" | ||
| 5 | #include "core/frontend/applets/profile_select.h" | 6 | #include "core/frontend/applets/profile_select.h" |
| 6 | #include "core/hle/service/acc/profile_manager.h" | 7 | #include "core/hle/service/acc/profile_manager.h" |
| 7 | #include "core/settings.h" | ||
| 8 | 8 | ||
| 9 | namespace Core::Frontend { | 9 | namespace Core::Frontend { |
| 10 | 10 | ||
diff --git a/src/core/frontend/emu_window.cpp b/src/core/frontend/emu_window.cpp index ee7a58b1c..474de9206 100644 --- a/src/core/frontend/emu_window.cpp +++ b/src/core/frontend/emu_window.cpp | |||
| @@ -4,9 +4,9 @@ | |||
| 4 | 4 | ||
| 5 | #include <cmath> | 5 | #include <cmath> |
| 6 | #include <mutex> | 6 | #include <mutex> |
| 7 | #include "common/settings.h" | ||
| 7 | #include "core/frontend/emu_window.h" | 8 | #include "core/frontend/emu_window.h" |
| 8 | #include "core/frontend/input.h" | 9 | #include "core/frontend/input.h" |
| 9 | #include "core/settings.h" | ||
| 10 | 10 | ||
| 11 | namespace Core::Frontend { | 11 | namespace Core::Frontend { |
| 12 | 12 | ||
diff --git a/src/core/frontend/framebuffer_layout.cpp b/src/core/frontend/framebuffer_layout.cpp index b9a270a55..0832463d6 100644 --- a/src/core/frontend/framebuffer_layout.cpp +++ b/src/core/frontend/framebuffer_layout.cpp | |||
| @@ -5,8 +5,8 @@ | |||
| 5 | #include <cmath> | 5 | #include <cmath> |
| 6 | 6 | ||
| 7 | #include "common/assert.h" | 7 | #include "common/assert.h" |
| 8 | #include "common/settings.h" | ||
| 8 | #include "core/frontend/framebuffer_layout.h" | 9 | #include "core/frontend/framebuffer_layout.h" |
| 9 | #include "core/settings.h" | ||
| 10 | 10 | ||
| 11 | namespace Layout { | 11 | namespace Layout { |
| 12 | 12 | ||
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 9d5956ead..420888439 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #include "common/alignment.h" | 10 | #include "common/alignment.h" |
| 11 | #include "common/assert.h" | 11 | #include "common/assert.h" |
| 12 | #include "common/logging/log.h" | 12 | #include "common/logging/log.h" |
| 13 | #include "common/settings.h" | ||
| 13 | #include "core/core.h" | 14 | #include "core/core.h" |
| 14 | #include "core/device_memory.h" | 15 | #include "core/device_memory.h" |
| 15 | #include "core/file_sys/program_metadata.h" | 16 | #include "core/file_sys/program_metadata.h" |
| @@ -26,7 +27,6 @@ | |||
| 26 | #include "core/hle/kernel/svc_results.h" | 27 | #include "core/hle/kernel/svc_results.h" |
| 27 | #include "core/hle/lock.h" | 28 | #include "core/hle/lock.h" |
| 28 | #include "core/memory.h" | 29 | #include "core/memory.h" |
| 29 | #include "core/settings.h" | ||
| 30 | 30 | ||
| 31 | namespace Kernel { | 31 | namespace Kernel { |
| 32 | namespace { | 32 | namespace { |
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp index 50b2c58e2..de83d82a4 100644 --- a/src/core/hle/service/acc/profile_manager.cpp +++ b/src/core/hle/service/acc/profile_manager.cpp | |||
| @@ -8,8 +8,8 @@ | |||
| 8 | #include <fmt/format.h> | 8 | #include <fmt/format.h> |
| 9 | 9 | ||
| 10 | #include "common/file_util.h" | 10 | #include "common/file_util.h" |
| 11 | #include "common/settings.h" | ||
| 11 | #include "core/hle/service/acc/profile_manager.h" | 12 | #include "core/hle/service/acc/profile_manager.h" |
| 12 | #include "core/settings.h" | ||
| 13 | 13 | ||
| 14 | namespace Service::Account { | 14 | namespace Service::Account { |
| 15 | 15 | ||
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 4374487a3..416c5239a 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | #include <cinttypes> | 7 | #include <cinttypes> |
| 8 | #include <cstring> | 8 | #include <cstring> |
| 9 | #include "audio_core/audio_renderer.h" | 9 | #include "audio_core/audio_renderer.h" |
| 10 | #include "common/settings.h" | ||
| 10 | #include "core/core.h" | 11 | #include "core/core.h" |
| 11 | #include "core/file_sys/control_metadata.h" | 12 | #include "core/file_sys/control_metadata.h" |
| 12 | #include "core/file_sys/patch_manager.h" | 13 | #include "core/file_sys/patch_manager.h" |
| @@ -41,7 +42,6 @@ | |||
| 41 | #include "core/hle/service/set/set.h" | 42 | #include "core/hle/service/set/set.h" |
| 42 | #include "core/hle/service/sm/sm.h" | 43 | #include "core/hle/service/sm/sm.h" |
| 43 | #include "core/hle/service/vi/vi.h" | 44 | #include "core/hle/service/vi/vi.h" |
| 44 | #include "core/settings.h" | ||
| 45 | 45 | ||
| 46 | namespace Service::AM { | 46 | namespace Service::AM { |
| 47 | 47 | ||
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp index 0f51e5871..75867e349 100644 --- a/src/core/hle/service/aoc/aoc_u.cpp +++ b/src/core/hle/service/aoc/aoc_u.cpp | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | #include <vector> | 7 | #include <vector> |
| 8 | 8 | ||
| 9 | #include "common/logging/log.h" | 9 | #include "common/logging/log.h" |
| 10 | #include "common/settings.h" | ||
| 10 | #include "core/core.h" | 11 | #include "core/core.h" |
| 11 | #include "core/file_sys/common_funcs.h" | 12 | #include "core/file_sys/common_funcs.h" |
| 12 | #include "core/file_sys/content_archive.h" | 13 | #include "core/file_sys/content_archive.h" |
| @@ -21,7 +22,6 @@ | |||
| 21 | #include "core/hle/kernel/process.h" | 22 | #include "core/hle/kernel/process.h" |
| 22 | #include "core/hle/service/aoc/aoc_u.h" | 23 | #include "core/hle/service/aoc/aoc_u.h" |
| 23 | #include "core/loader/loader.h" | 24 | #include "core/loader/loader.h" |
| 24 | #include "core/settings.h" | ||
| 25 | 25 | ||
| 26 | namespace Service::AOC { | 26 | namespace Service::AOC { |
| 27 | 27 | ||
diff --git a/src/core/hle/service/apm/controller.cpp b/src/core/hle/service/apm/controller.cpp index 03636642b..00c174bb0 100644 --- a/src/core/hle/service/apm/controller.cpp +++ b/src/core/hle/service/apm/controller.cpp | |||
| @@ -7,9 +7,9 @@ | |||
| 7 | #include <utility> | 7 | #include <utility> |
| 8 | 8 | ||
| 9 | #include "common/logging/log.h" | 9 | #include "common/logging/log.h" |
| 10 | #include "common/settings.h" | ||
| 10 | #include "core/core_timing.h" | 11 | #include "core/core_timing.h" |
| 11 | #include "core/hle/service/apm/controller.h" | 12 | #include "core/hle/service/apm/controller.h" |
| 12 | #include "core/settings.h" | ||
| 13 | 13 | ||
| 14 | namespace Service::APM { | 14 | namespace Service::APM { |
| 15 | 15 | ||
diff --git a/src/core/hle/service/bcat/backend/boxcat.cpp b/src/core/hle/service/bcat/backend/boxcat.cpp index e43f3f47f..78c047bd2 100644 --- a/src/core/hle/service/bcat/backend/boxcat.cpp +++ b/src/core/hle/service/bcat/backend/boxcat.cpp | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | #include "common/hex_util.h" | 9 | #include "common/hex_util.h" |
| 10 | #include "common/logging/backend.h" | 10 | #include "common/logging/backend.h" |
| 11 | #include "common/logging/log.h" | 11 | #include "common/logging/log.h" |
| 12 | #include "common/settings.h" | ||
| 12 | #include "core/core.h" | 13 | #include "core/core.h" |
| 13 | #include "core/file_sys/vfs.h" | 14 | #include "core/file_sys/vfs.h" |
| 14 | #include "core/file_sys/vfs_libzip.h" | 15 | #include "core/file_sys/vfs_libzip.h" |
| @@ -16,7 +17,6 @@ | |||
| 16 | #include "core/frontend/applets/error.h" | 17 | #include "core/frontend/applets/error.h" |
| 17 | #include "core/hle/service/am/applets/applets.h" | 18 | #include "core/hle/service/am/applets/applets.h" |
| 18 | #include "core/hle/service/bcat/backend/boxcat.h" | 19 | #include "core/hle/service/bcat/backend/boxcat.h" |
| 19 | #include "core/settings.h" | ||
| 20 | 20 | ||
| 21 | namespace Service::BCAT { | 21 | namespace Service::BCAT { |
| 22 | namespace { | 22 | namespace { |
diff --git a/src/core/hle/service/bcat/module.cpp b/src/core/hle/service/bcat/module.cpp index b68e2c345..c7dd04a6e 100644 --- a/src/core/hle/service/bcat/module.cpp +++ b/src/core/hle/service/bcat/module.cpp | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | #include "backend/boxcat.h" | 7 | #include "backend/boxcat.h" |
| 8 | #include "common/hex_util.h" | 8 | #include "common/hex_util.h" |
| 9 | #include "common/logging/log.h" | 9 | #include "common/logging/log.h" |
| 10 | #include "common/settings.h" | ||
| 10 | #include "common/string_util.h" | 11 | #include "common/string_util.h" |
| 11 | #include "core/core.h" | 12 | #include "core/core.h" |
| 12 | #include "core/file_sys/vfs.h" | 13 | #include "core/file_sys/vfs.h" |
| @@ -18,7 +19,6 @@ | |||
| 18 | #include "core/hle/service/bcat/bcat.h" | 19 | #include "core/hle/service/bcat/bcat.h" |
| 19 | #include "core/hle/service/bcat/module.h" | 20 | #include "core/hle/service/bcat/module.h" |
| 20 | #include "core/hle/service/filesystem/filesystem.h" | 21 | #include "core/hle/service/filesystem/filesystem.h" |
| 21 | #include "core/settings.h" | ||
| 22 | 22 | ||
| 23 | namespace Service::BCAT { | 23 | namespace Service::BCAT { |
| 24 | 24 | ||
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp index b15c737e1..72ad273b2 100644 --- a/src/core/hle/service/filesystem/filesystem.cpp +++ b/src/core/hle/service/filesystem/filesystem.cpp | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include "common/assert.h" | 7 | #include "common/assert.h" |
| 8 | #include "common/file_util.h" | 8 | #include "common/file_util.h" |
| 9 | #include "common/settings.h" | ||
| 9 | #include "core/core.h" | 10 | #include "core/core.h" |
| 10 | #include "core/file_sys/bis_factory.h" | 11 | #include "core/file_sys/bis_factory.h" |
| 11 | #include "core/file_sys/card_image.h" | 12 | #include "core/file_sys/card_image.h" |
| @@ -26,7 +27,6 @@ | |||
| 26 | #include "core/hle/service/filesystem/fsp_pr.h" | 27 | #include "core/hle/service/filesystem/fsp_pr.h" |
| 27 | #include "core/hle/service/filesystem/fsp_srv.h" | 28 | #include "core/hle/service/filesystem/fsp_srv.h" |
| 28 | #include "core/loader/loader.h" | 29 | #include "core/loader/loader.h" |
| 29 | #include "core/settings.h" | ||
| 30 | 30 | ||
| 31 | namespace Service::FileSystem { | 31 | namespace Service::FileSystem { |
| 32 | 32 | ||
diff --git a/src/core/hle/service/hid/controllers/debug_pad.cpp b/src/core/hle/service/hid/controllers/debug_pad.cpp index ad251ed4a..a460f2f79 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 @@ | |||
| 4 | 4 | ||
| 5 | #include <cstring> | 5 | #include <cstring> |
| 6 | #include "common/common_types.h" | 6 | #include "common/common_types.h" |
| 7 | #include "common/settings.h" | ||
| 7 | #include "core/core_timing.h" | 8 | #include "core/core_timing.h" |
| 8 | #include "core/hle/service/hid/controllers/debug_pad.h" | 9 | #include "core/hle/service/hid/controllers/debug_pad.h" |
| 9 | #include "core/settings.h" | ||
| 10 | 10 | ||
| 11 | namespace Service::HID { | 11 | namespace Service::HID { |
| 12 | 12 | ||
diff --git a/src/core/hle/service/hid/controllers/debug_pad.h b/src/core/hle/service/hid/controllers/debug_pad.h index 555b29d76..0593d7d39 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 @@ | |||
| 8 | #include "common/bit_field.h" | 8 | #include "common/bit_field.h" |
| 9 | #include "common/common_funcs.h" | 9 | #include "common/common_funcs.h" |
| 10 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 11 | #include "common/settings.h" | ||
| 11 | #include "common/swap.h" | 12 | #include "common/swap.h" |
| 12 | #include "core/frontend/input.h" | 13 | #include "core/frontend/input.h" |
| 13 | #include "core/hle/service/hid/controllers/controller_base.h" | 14 | #include "core/hle/service/hid/controllers/controller_base.h" |
| 14 | #include "core/settings.h" | ||
| 15 | 15 | ||
| 16 | namespace Service::HID { | 16 | namespace Service::HID { |
| 17 | class Controller_DebugPad final : public ControllerBase { | 17 | 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.cpp index 93c43a203..155808f6a 100644 --- a/src/core/hle/service/hid/controllers/gesture.cpp +++ b/src/core/hle/service/hid/controllers/gesture.cpp | |||
| @@ -5,10 +5,10 @@ | |||
| 5 | #include <cstring> | 5 | #include <cstring> |
| 6 | #include "common/common_types.h" | 6 | #include "common/common_types.h" |
| 7 | #include "common/logging/log.h" | 7 | #include "common/logging/log.h" |
| 8 | #include "common/settings.h" | ||
| 8 | #include "core/core_timing.h" | 9 | #include "core/core_timing.h" |
| 9 | #include "core/frontend/emu_window.h" | 10 | #include "core/frontend/emu_window.h" |
| 10 | #include "core/hle/service/hid/controllers/gesture.h" | 11 | #include "core/hle/service/hid/controllers/gesture.h" |
| 11 | #include "core/settings.h" | ||
| 12 | 12 | ||
| 13 | namespace Service::HID { | 13 | namespace Service::HID { |
| 14 | constexpr std::size_t SHARED_MEMORY_OFFSET = 0x3BA00; | 14 | 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.cpp index c4a59147d..18b76038f 100644 --- a/src/core/hle/service/hid/controllers/keyboard.cpp +++ b/src/core/hle/service/hid/controllers/keyboard.cpp | |||
| @@ -4,9 +4,9 @@ | |||
| 4 | 4 | ||
| 5 | #include <cstring> | 5 | #include <cstring> |
| 6 | #include "common/common_types.h" | 6 | #include "common/common_types.h" |
| 7 | #include "common/settings.h" | ||
| 7 | #include "core/core_timing.h" | 8 | #include "core/core_timing.h" |
| 8 | #include "core/hle/service/hid/controllers/keyboard.h" | 9 | #include "core/hle/service/hid/controllers/keyboard.h" |
| 9 | #include "core/settings.h" | ||
| 10 | 10 | ||
| 11 | namespace Service::HID { | 11 | namespace Service::HID { |
| 12 | constexpr std::size_t SHARED_MEMORY_OFFSET = 0x3800; | 12 | 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.h index b5b281752..e72948591 100644 --- a/src/core/hle/service/hid/controllers/keyboard.h +++ b/src/core/hle/service/hid/controllers/keyboard.h | |||
| @@ -8,10 +8,10 @@ | |||
| 8 | #include "common/bit_field.h" | 8 | #include "common/bit_field.h" |
| 9 | #include "common/common_funcs.h" | 9 | #include "common/common_funcs.h" |
| 10 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 11 | #include "common/settings.h" | ||
| 11 | #include "common/swap.h" | 12 | #include "common/swap.h" |
| 12 | #include "core/frontend/input.h" | 13 | #include "core/frontend/input.h" |
| 13 | #include "core/hle/service/hid/controllers/controller_base.h" | 14 | #include "core/hle/service/hid/controllers/controller_base.h" |
| 14 | #include "core/settings.h" | ||
| 15 | 15 | ||
| 16 | namespace Service::HID { | 16 | namespace Service::HID { |
| 17 | class Controller_Keyboard final : public ControllerBase { | 17 | 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.h index 3b432a36e..0ec0c2b94 100644 --- a/src/core/hle/service/hid/controllers/mouse.h +++ b/src/core/hle/service/hid/controllers/mouse.h | |||
| @@ -7,10 +7,10 @@ | |||
| 7 | #include <array> | 7 | #include <array> |
| 8 | #include "common/bit_field.h" | 8 | #include "common/bit_field.h" |
| 9 | #include "common/common_types.h" | 9 | #include "common/common_types.h" |
| 10 | #include "common/settings.h" | ||
| 10 | #include "common/swap.h" | 11 | #include "common/swap.h" |
| 11 | #include "core/frontend/input.h" | 12 | #include "core/frontend/input.h" |
| 12 | #include "core/hle/service/hid/controllers/controller_base.h" | 13 | #include "core/hle/service/hid/controllers/controller_base.h" |
| 13 | #include "core/settings.h" | ||
| 14 | 14 | ||
| 15 | namespace Service::HID { | 15 | namespace Service::HID { |
| 16 | class Controller_Mouse final : public ControllerBase { | 16 | 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.cpp index 673db68c7..783386fcf 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | #include "common/bit_field.h" | 9 | #include "common/bit_field.h" |
| 10 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 11 | #include "common/logging/log.h" | 11 | #include "common/logging/log.h" |
| 12 | #include "common/settings.h" | ||
| 12 | #include "core/core.h" | 13 | #include "core/core.h" |
| 13 | #include "core/core_timing.h" | 14 | #include "core/core_timing.h" |
| 14 | #include "core/frontend/input.h" | 15 | #include "core/frontend/input.h" |
| @@ -17,7 +18,6 @@ | |||
| 17 | #include "core/hle/kernel/k_writable_event.h" | 18 | #include "core/hle/kernel/k_writable_event.h" |
| 18 | #include "core/hle/kernel/kernel.h" | 19 | #include "core/hle/kernel/kernel.h" |
| 19 | #include "core/hle/service/hid/controllers/npad.h" | 20 | #include "core/hle/service/hid/controllers/npad.h" |
| 20 | #include "core/settings.h" | ||
| 21 | 21 | ||
| 22 | namespace Service::HID { | 22 | namespace Service::HID { |
| 23 | constexpr s32 HID_JOYSTICK_MAX = 0x7fff; | 23 | 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.h index 873a0a1e2..14d0ac067 100644 --- a/src/core/hle/service/hid/controllers/npad.h +++ b/src/core/hle/service/hid/controllers/npad.h | |||
| @@ -8,10 +8,10 @@ | |||
| 8 | #include <atomic> | 8 | #include <atomic> |
| 9 | #include "common/bit_field.h" | 9 | #include "common/bit_field.h" |
| 10 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 11 | #include "common/settings.h" | ||
| 11 | #include "core/frontend/input.h" | 12 | #include "core/frontend/input.h" |
| 12 | #include "core/hle/kernel/object.h" | 13 | #include "core/hle/kernel/object.h" |
| 13 | #include "core/hle/service/hid/controllers/controller_base.h" | 14 | #include "core/hle/service/hid/controllers/controller_base.h" |
| 14 | #include "core/settings.h" | ||
| 15 | 15 | ||
| 16 | namespace Kernel { | 16 | namespace Kernel { |
| 17 | class KEvent; | 17 | class KEvent; |
diff --git a/src/core/hle/service/hid/controllers/touchscreen.cpp b/src/core/hle/service/hid/controllers/touchscreen.cpp index be60492a4..b5f8077be 100644 --- a/src/core/hle/service/hid/controllers/touchscreen.cpp +++ b/src/core/hle/service/hid/controllers/touchscreen.cpp | |||
| @@ -6,11 +6,11 @@ | |||
| 6 | #include <cstring> | 6 | #include <cstring> |
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | #include "common/logging/log.h" | 8 | #include "common/logging/log.h" |
| 9 | #include "common/settings.h" | ||
| 9 | #include "core/core_timing.h" | 10 | #include "core/core_timing.h" |
| 10 | #include "core/frontend/emu_window.h" | 11 | #include "core/frontend/emu_window.h" |
| 11 | #include "core/frontend/input.h" | 12 | #include "core/frontend/input.h" |
| 12 | #include "core/hle/service/hid/controllers/touchscreen.h" | 13 | #include "core/hle/service/hid/controllers/touchscreen.h" |
| 13 | #include "core/settings.h" | ||
| 14 | 14 | ||
| 15 | namespace Service::HID { | 15 | namespace Service::HID { |
| 16 | constexpr std::size_t SHARED_MEMORY_OFFSET = 0x400; | 16 | 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.cpp index a1a779cc0..4c1c0ac68 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #include <array> | 5 | #include <array> |
| 6 | #include "common/common_types.h" | 6 | #include "common/common_types.h" |
| 7 | #include "common/logging/log.h" | 7 | #include "common/logging/log.h" |
| 8 | #include "common/settings.h" | ||
| 8 | #include "core/core.h" | 9 | #include "core/core.h" |
| 9 | #include "core/core_timing.h" | 10 | #include "core/core_timing.h" |
| 10 | #include "core/core_timing_util.h" | 11 | #include "core/core_timing_util.h" |
| @@ -23,7 +24,6 @@ | |||
| 23 | #include "core/hle/service/hid/irs.h" | 24 | #include "core/hle/service/hid/irs.h" |
| 24 | #include "core/hle/service/hid/xcd.h" | 25 | #include "core/hle/service/hid/xcd.h" |
| 25 | #include "core/hle/service/service.h" | 26 | #include "core/hle/service/service.h" |
| 26 | #include "core/settings.h" | ||
| 27 | 27 | ||
| 28 | #include "core/hle/service/hid/controllers/controller_base.h" | 28 | #include "core/hle/service/hid/controllers/controller_base.h" |
| 29 | #include "core/hle/service/hid/controllers/debug_pad.h" | 29 | #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.cpp index 6ab35de47..44a5d5789 100644 --- a/src/core/hle/service/nfc/nfc.cpp +++ b/src/core/hle/service/nfc/nfc.cpp | |||
| @@ -5,12 +5,12 @@ | |||
| 5 | #include <memory> | 5 | #include <memory> |
| 6 | 6 | ||
| 7 | #include "common/logging/log.h" | 7 | #include "common/logging/log.h" |
| 8 | #include "common/settings.h" | ||
| 8 | #include "core/hle/ipc_helpers.h" | 9 | #include "core/hle/ipc_helpers.h" |
| 9 | #include "core/hle/kernel/hle_ipc.h" | 10 | #include "core/hle/kernel/hle_ipc.h" |
| 10 | #include "core/hle/service/nfc/nfc.h" | 11 | #include "core/hle/service/nfc/nfc.h" |
| 11 | #include "core/hle/service/service.h" | 12 | #include "core/hle/service/service.h" |
| 12 | #include "core/hle/service/sm/sm.h" | 13 | #include "core/hle/service/sm/sm.h" |
| 13 | #include "core/settings.h" | ||
| 14 | 14 | ||
| 15 | namespace Service::NFC { | 15 | namespace Service::NFC { |
| 16 | 16 | ||
diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp index afb3342d6..9f110df8e 100644 --- a/src/core/hle/service/nifm/nifm.cpp +++ b/src/core/hle/service/nifm/nifm.cpp | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/settings.h" | ||
| 5 | #include "core/core.h" | 6 | #include "core/core.h" |
| 6 | #include "core/hle/ipc_helpers.h" | 7 | #include "core/hle/ipc_helpers.h" |
| 7 | #include "core/hle/kernel/k_event.h" | 8 | #include "core/hle/kernel/k_event.h" |
| @@ -10,7 +11,6 @@ | |||
| 10 | #include "core/hle/service/nifm/nifm.h" | 11 | #include "core/hle/service/nifm/nifm.h" |
| 11 | #include "core/hle/service/service.h" | 12 | #include "core/hle/service/service.h" |
| 12 | #include "core/network/network.h" | 13 | #include "core/network/network.h" |
| 13 | #include "core/settings.h" | ||
| 14 | 14 | ||
| 15 | namespace Service::NIFM { | 15 | namespace Service::NIFM { |
| 16 | 16 | ||
diff --git a/src/core/hle/service/ns/ns.cpp b/src/core/hle/service/ns/ns.cpp index 5fe7a9189..e373609a1 100644 --- a/src/core/hle/service/ns/ns.cpp +++ b/src/core/hle/service/ns/ns.cpp | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/logging/log.h" | 5 | #include "common/logging/log.h" |
| 6 | #include "common/settings.h" | ||
| 6 | #include "core/core.h" | 7 | #include "core/core.h" |
| 7 | #include "core/file_sys/control_metadata.h" | 8 | #include "core/file_sys/control_metadata.h" |
| 8 | #include "core/file_sys/patch_manager.h" | 9 | #include "core/file_sys/patch_manager.h" |
| @@ -14,7 +15,6 @@ | |||
| 14 | #include "core/hle/service/ns/ns.h" | 15 | #include "core/hle/service/ns/ns.h" |
| 15 | #include "core/hle/service/ns/pl_u.h" | 16 | #include "core/hle/service/ns/pl_u.h" |
| 16 | #include "core/hle/service/set/set.h" | 17 | #include "core/hle/service/set/set.h" |
| 17 | #include "core/settings.h" | ||
| 18 | 18 | ||
| 19 | namespace Service::NS { | 19 | namespace Service::NS { |
| 20 | 20 | ||
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp index ac2906e5b..539b02bc4 100644 --- a/src/core/hle/service/nvflinger/nvflinger.cpp +++ b/src/core/hle/service/nvflinger/nvflinger.cpp | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | #include "common/logging/log.h" | 9 | #include "common/logging/log.h" |
| 10 | #include "common/microprofile.h" | 10 | #include "common/microprofile.h" |
| 11 | #include "common/scope_exit.h" | 11 | #include "common/scope_exit.h" |
| 12 | #include "common/settings.h" | ||
| 12 | #include "common/thread.h" | 13 | #include "common/thread.h" |
| 13 | #include "core/core.h" | 14 | #include "core/core.h" |
| 14 | #include "core/core_timing.h" | 15 | #include "core/core_timing.h" |
| @@ -23,7 +24,6 @@ | |||
| 23 | #include "core/hle/service/vi/display/vi_display.h" | 24 | #include "core/hle/service/vi/display/vi_display.h" |
| 24 | #include "core/hle/service/vi/layer/vi_layer.h" | 25 | #include "core/hle/service/vi/layer/vi_layer.h" |
| 25 | #include "core/perf_stats.h" | 26 | #include "core/perf_stats.h" |
| 26 | #include "core/settings.h" | ||
| 27 | #include "video_core/renderer_base.h" | 27 | #include "video_core/renderer_base.h" |
| 28 | 28 | ||
| 29 | namespace Service::NVFlinger { | 29 | namespace Service::NVFlinger { |
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index aec399076..41a502d8d 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | #include <fmt/format.h> | 6 | #include <fmt/format.h> |
| 7 | #include "common/assert.h" | 7 | #include "common/assert.h" |
| 8 | #include "common/logging/log.h" | 8 | #include "common/logging/log.h" |
| 9 | #include "common/settings.h" | ||
| 9 | #include "common/string_util.h" | 10 | #include "common/string_util.h" |
| 10 | #include "core/core.h" | 11 | #include "core/core.h" |
| 11 | #include "core/hle/ipc.h" | 12 | #include "core/hle/ipc.h" |
| @@ -70,7 +71,6 @@ | |||
| 70 | #include "core/hle/service/vi/vi.h" | 71 | #include "core/hle/service/vi/vi.h" |
| 71 | #include "core/hle/service/wlan/wlan.h" | 72 | #include "core/hle/service/wlan/wlan.h" |
| 72 | #include "core/reporter.h" | 73 | #include "core/reporter.h" |
| 73 | #include "core/settings.h" | ||
| 74 | 74 | ||
| 75 | namespace Service { | 75 | namespace Service { |
| 76 | 76 | ||
diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp index d953b4303..bc7dc776f 100644 --- a/src/core/hle/service/set/set.cpp +++ b/src/core/hle/service/set/set.cpp | |||
| @@ -6,9 +6,9 @@ | |||
| 6 | #include <array> | 6 | #include <array> |
| 7 | #include <chrono> | 7 | #include <chrono> |
| 8 | #include "common/logging/log.h" | 8 | #include "common/logging/log.h" |
| 9 | #include "common/settings.h" | ||
| 9 | #include "core/hle/ipc_helpers.h" | 10 | #include "core/hle/ipc_helpers.h" |
| 10 | #include "core/hle/service/set/set.h" | 11 | #include "core/hle/service/set/set.h" |
| 11 | #include "core/settings.h" | ||
| 12 | 12 | ||
| 13 | namespace Service::Set { | 13 | namespace Service::Set { |
| 14 | namespace { | 14 | namespace { |
diff --git a/src/core/hle/service/spl/module.cpp b/src/core/hle/service/spl/module.cpp index 6903dd534..b1552c3f0 100644 --- a/src/core/hle/service/spl/module.cpp +++ b/src/core/hle/service/spl/module.cpp | |||
| @@ -9,11 +9,11 @@ | |||
| 9 | #include <functional> | 9 | #include <functional> |
| 10 | #include <vector> | 10 | #include <vector> |
| 11 | #include "common/logging/log.h" | 11 | #include "common/logging/log.h" |
| 12 | #include "common/settings.h" | ||
| 12 | #include "core/hle/ipc_helpers.h" | 13 | #include "core/hle/ipc_helpers.h" |
| 13 | #include "core/hle/service/spl/csrng.h" | 14 | #include "core/hle/service/spl/csrng.h" |
| 14 | #include "core/hle/service/spl/module.h" | 15 | #include "core/hle/service/spl/module.h" |
| 15 | #include "core/hle/service/spl/spl.h" | 16 | #include "core/hle/service/spl/spl.h" |
| 16 | #include "core/settings.h" | ||
| 17 | 17 | ||
| 18 | namespace Service::SPL { | 18 | namespace Service::SPL { |
| 19 | 19 | ||
diff --git a/src/core/hle/service/time/time_manager.cpp b/src/core/hle/service/time/time_manager.cpp index 51becd074..f89c5aaad 100644 --- a/src/core/hle/service/time/time_manager.cpp +++ b/src/core/hle/service/time/time_manager.cpp | |||
| @@ -5,12 +5,12 @@ | |||
| 5 | #include <chrono> | 5 | #include <chrono> |
| 6 | #include <ctime> | 6 | #include <ctime> |
| 7 | 7 | ||
| 8 | #include "common/settings.h" | ||
| 8 | #include "common/time_zone.h" | 9 | #include "common/time_zone.h" |
| 9 | #include "core/hle/service/time/ephemeral_network_system_clock_context_writer.h" | 10 | #include "core/hle/service/time/ephemeral_network_system_clock_context_writer.h" |
| 10 | #include "core/hle/service/time/local_system_clock_context_writer.h" | 11 | #include "core/hle/service/time/local_system_clock_context_writer.h" |
| 11 | #include "core/hle/service/time/network_system_clock_context_writer.h" | 12 | #include "core/hle/service/time/network_system_clock_context_writer.h" |
| 12 | #include "core/hle/service/time/time_manager.h" | 13 | #include "core/hle/service/time/time_manager.h" |
| 13 | #include "core/settings.h" | ||
| 14 | 14 | ||
| 15 | namespace Service::Time { | 15 | namespace Service::Time { |
| 16 | 16 | ||
diff --git a/src/core/hle/service/time/time_zone_content_manager.cpp b/src/core/hle/service/time/time_zone_content_manager.cpp index 4177d0a41..3c8e71a3c 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 @@ | |||
| 5 | #include <sstream> | 5 | #include <sstream> |
| 6 | 6 | ||
| 7 | #include "common/logging/log.h" | 7 | #include "common/logging/log.h" |
| 8 | #include "common/settings.h" | ||
| 8 | #include "common/time_zone.h" | 9 | #include "common/time_zone.h" |
| 9 | #include "core/core.h" | 10 | #include "core/core.h" |
| 10 | #include "core/file_sys/content_archive.h" | 11 | #include "core/file_sys/content_archive.h" |
| @@ -15,7 +16,6 @@ | |||
| 15 | #include "core/hle/service/filesystem/filesystem.h" | 16 | #include "core/hle/service/filesystem/filesystem.h" |
| 16 | #include "core/hle/service/time/time_manager.h" | 17 | #include "core/hle/service/time/time_manager.h" |
| 17 | #include "core/hle/service/time/time_zone_content_manager.h" | 18 | #include "core/hle/service/time/time_zone_content_manager.h" |
| 18 | #include "core/settings.h" | ||
| 19 | 19 | ||
| 20 | namespace Service::Time::TimeZone { | 20 | namespace Service::Time::TimeZone { |
| 21 | 21 | ||
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index a1a7ac987..348360b51 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | #include "common/common_funcs.h" | 15 | #include "common/common_funcs.h" |
| 16 | #include "common/logging/log.h" | 16 | #include "common/logging/log.h" |
| 17 | #include "common/math_util.h" | 17 | #include "common/math_util.h" |
| 18 | #include "common/settings.h" | ||
| 18 | #include "common/swap.h" | 19 | #include "common/swap.h" |
| 19 | #include "core/core_timing.h" | 20 | #include "core/core_timing.h" |
| 20 | #include "core/hle/ipc_helpers.h" | 21 | #include "core/hle/ipc_helpers.h" |
| @@ -30,7 +31,6 @@ | |||
| 30 | #include "core/hle/service/vi/vi_m.h" | 31 | #include "core/hle/service/vi/vi_m.h" |
| 31 | #include "core/hle/service/vi/vi_s.h" | 32 | #include "core/hle/service/vi/vi_s.h" |
| 32 | #include "core/hle/service/vi/vi_u.h" | 33 | #include "core/hle/service/vi/vi_u.h" |
| 33 | #include "core/settings.h" | ||
| 34 | 34 | ||
| 35 | namespace Service::VI { | 35 | namespace Service::VI { |
| 36 | 36 | ||
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp index 14618cb40..0115ed0c4 100644 --- a/src/core/loader/nro.cpp +++ b/src/core/loader/nro.cpp | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | #include "common/common_types.h" | 9 | #include "common/common_types.h" |
| 10 | #include "common/file_util.h" | 10 | #include "common/file_util.h" |
| 11 | #include "common/logging/log.h" | 11 | #include "common/logging/log.h" |
| 12 | #include "common/settings.h" | ||
| 12 | #include "common/swap.h" | 13 | #include "common/swap.h" |
| 13 | #include "core/core.h" | 14 | #include "core/core.h" |
| 14 | #include "core/file_sys/control_metadata.h" | 15 | #include "core/file_sys/control_metadata.h" |
| @@ -22,7 +23,6 @@ | |||
| 22 | #include "core/loader/nro.h" | 23 | #include "core/loader/nro.h" |
| 23 | #include "core/loader/nso.h" | 24 | #include "core/loader/nso.h" |
| 24 | #include "core/memory.h" | 25 | #include "core/memory.h" |
| 25 | #include "core/settings.h" | ||
| 26 | 26 | ||
| 27 | namespace Loader { | 27 | namespace Loader { |
| 28 | 28 | ||
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index cbd048695..0c83dd666 100644 --- a/src/core/loader/nso.cpp +++ b/src/core/loader/nso.cpp | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | #include "common/hex_util.h" | 11 | #include "common/hex_util.h" |
| 12 | #include "common/logging/log.h" | 12 | #include "common/logging/log.h" |
| 13 | #include "common/lz4_compression.h" | 13 | #include "common/lz4_compression.h" |
| 14 | #include "common/settings.h" | ||
| 14 | #include "common/swap.h" | 15 | #include "common/swap.h" |
| 15 | #include "core/core.h" | 16 | #include "core/core.h" |
| 16 | #include "core/file_sys/patch_manager.h" | 17 | #include "core/file_sys/patch_manager.h" |
| @@ -20,7 +21,6 @@ | |||
| 20 | #include "core/hle/kernel/process.h" | 21 | #include "core/hle/kernel/process.h" |
| 21 | #include "core/loader/nso.h" | 22 | #include "core/loader/nso.h" |
| 22 | #include "core/memory.h" | 23 | #include "core/memory.h" |
| 23 | #include "core/settings.h" | ||
| 24 | 24 | ||
| 25 | namespace Loader { | 25 | namespace Loader { |
| 26 | namespace { | 26 | namespace { |
diff --git a/src/core/perf_stats.cpp b/src/core/perf_stats.cpp index b93396a80..c92337079 100644 --- a/src/core/perf_stats.cpp +++ b/src/core/perf_stats.cpp | |||
| @@ -13,8 +13,8 @@ | |||
| 13 | #include <fmt/format.h> | 13 | #include <fmt/format.h> |
| 14 | #include "common/file_util.h" | 14 | #include "common/file_util.h" |
| 15 | #include "common/math_util.h" | 15 | #include "common/math_util.h" |
| 16 | #include "common/settings.h" | ||
| 16 | #include "core/perf_stats.h" | 17 | #include "core/perf_stats.h" |
| 17 | #include "core/settings.h" | ||
| 18 | 18 | ||
| 19 | using namespace std::chrono_literals; | 19 | using namespace std::chrono_literals; |
| 20 | using DoubleSecs = std::chrono::duration<double, std::chrono::seconds::period>; | 20 | using DoubleSecs = std::chrono::duration<double, std::chrono::seconds::period>; |
diff --git a/src/core/reporter.cpp b/src/core/reporter.cpp index 74fb32814..311d4dda8 100644 --- a/src/core/reporter.cpp +++ b/src/core/reporter.cpp | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | #include "common/file_util.h" | 14 | #include "common/file_util.h" |
| 15 | #include "common/hex_util.h" | 15 | #include "common/hex_util.h" |
| 16 | #include "common/scm_rev.h" | 16 | #include "common/scm_rev.h" |
| 17 | #include "common/settings.h" | ||
| 17 | #include "core/arm/arm_interface.h" | 18 | #include "core/arm/arm_interface.h" |
| 18 | #include "core/core.h" | 19 | #include "core/core.h" |
| 19 | #include "core/hle/kernel/hle_ipc.h" | 20 | #include "core/hle/kernel/hle_ipc.h" |
| @@ -22,7 +23,6 @@ | |||
| 22 | #include "core/hle/result.h" | 23 | #include "core/hle/result.h" |
| 23 | #include "core/memory.h" | 24 | #include "core/memory.h" |
| 24 | #include "core/reporter.h" | 25 | #include "core/reporter.h" |
| 25 | #include "core/settings.h" | ||
| 26 | 26 | ||
| 27 | namespace { | 27 | namespace { |
| 28 | 28 | ||
diff --git a/src/core/settings.cpp b/src/core/settings.cpp deleted file mode 100644 index 2ae5196e0..000000000 --- a/src/core/settings.cpp +++ /dev/null | |||
| @@ -1,154 +0,0 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include <string_view> | ||
| 6 | |||
| 7 | #include "common/assert.h" | ||
| 8 | #include "common/file_util.h" | ||
| 9 | #include "common/logging/log.h" | ||
| 10 | #include "core/core.h" | ||
| 11 | #include "core/hle/service/hid/hid.h" | ||
| 12 | #include "core/settings.h" | ||
| 13 | #include "video_core/renderer_base.h" | ||
| 14 | |||
| 15 | namespace Settings { | ||
| 16 | |||
| 17 | Values values = {}; | ||
| 18 | static bool configuring_global = true; | ||
| 19 | |||
| 20 | std::string GetTimeZoneString() { | ||
| 21 | static constexpr std::array timezones{ | ||
| 22 | "auto", "default", "CET", "CST6CDT", "Cuba", "EET", "Egypt", "Eire", | ||
| 23 | "EST", "EST5EDT", "GB", "GB-Eire", "GMT", "GMT+0", "GMT-0", "GMT0", | ||
| 24 | "Greenwich", "Hongkong", "HST", "Iceland", "Iran", "Israel", "Jamaica", "Japan", | ||
| 25 | "Kwajalein", "Libya", "MET", "MST", "MST7MDT", "Navajo", "NZ", "NZ-CHAT", | ||
| 26 | "Poland", "Portugal", "PRC", "PST8PDT", "ROC", "ROK", "Singapore", "Turkey", | ||
| 27 | "UCT", "Universal", "UTC", "W-SU", "WET", "Zulu", | ||
| 28 | }; | ||
| 29 | |||
| 30 | const auto time_zone_index = static_cast<std::size_t>(values.time_zone_index.GetValue()); | ||
| 31 | ASSERT(time_zone_index < timezones.size()); | ||
| 32 | return timezones[time_zone_index]; | ||
| 33 | } | ||
| 34 | |||
| 35 | void Apply(Core::System& system) { | ||
| 36 | if (system.IsPoweredOn()) { | ||
| 37 | system.Renderer().RefreshBaseSettings(); | ||
| 38 | } | ||
| 39 | |||
| 40 | Service::HID::ReloadInputDevices(); | ||
| 41 | } | ||
| 42 | |||
| 43 | void LogSettings() { | ||
| 44 | const auto log_setting = [](std::string_view name, const auto& value) { | ||
| 45 | LOG_INFO(Config, "{}: {}", name, value); | ||
| 46 | }; | ||
| 47 | |||
| 48 | LOG_INFO(Config, "yuzu Configuration:"); | ||
| 49 | log_setting("Controls_UseDockedMode", values.use_docked_mode.GetValue()); | ||
| 50 | log_setting("System_RngSeed", values.rng_seed.GetValue().value_or(0)); | ||
| 51 | log_setting("System_CurrentUser", values.current_user); | ||
| 52 | log_setting("System_LanguageIndex", values.language_index.GetValue()); | ||
| 53 | log_setting("System_RegionIndex", values.region_index.GetValue()); | ||
| 54 | log_setting("System_TimeZoneIndex", values.time_zone_index.GetValue()); | ||
| 55 | log_setting("Core_UseMultiCore", values.use_multi_core.GetValue()); | ||
| 56 | log_setting("CPU_Accuracy", values.cpu_accuracy); | ||
| 57 | log_setting("Renderer_UseResolutionFactor", values.resolution_factor.GetValue()); | ||
| 58 | log_setting("Renderer_UseFrameLimit", values.use_frame_limit.GetValue()); | ||
| 59 | log_setting("Renderer_FrameLimit", values.frame_limit.GetValue()); | ||
| 60 | log_setting("Renderer_UseDiskShaderCache", values.use_disk_shader_cache.GetValue()); | ||
| 61 | log_setting("Renderer_GPUAccuracyLevel", values.gpu_accuracy.GetValue()); | ||
| 62 | log_setting("Renderer_UseAsynchronousGpuEmulation", | ||
| 63 | values.use_asynchronous_gpu_emulation.GetValue()); | ||
| 64 | log_setting("Renderer_UseNvdecEmulation", values.use_nvdec_emulation.GetValue()); | ||
| 65 | log_setting("Renderer_UseVsync", values.use_vsync.GetValue()); | ||
| 66 | log_setting("Renderer_UseAssemblyShaders", values.use_assembly_shaders.GetValue()); | ||
| 67 | log_setting("Renderer_UseAsynchronousShaders", values.use_asynchronous_shaders.GetValue()); | ||
| 68 | log_setting("Renderer_AnisotropicFilteringLevel", values.max_anisotropy.GetValue()); | ||
| 69 | log_setting("Audio_OutputEngine", values.sink_id); | ||
| 70 | log_setting("Audio_EnableAudioStretching", values.enable_audio_stretching.GetValue()); | ||
| 71 | log_setting("Audio_OutputDevice", values.audio_device_id); | ||
| 72 | log_setting("DataStorage_UseVirtualSd", values.use_virtual_sd); | ||
| 73 | log_setting("DataStorage_CacheDir", Common::FS::GetUserPath(Common::FS::UserPath::CacheDir)); | ||
| 74 | log_setting("DataStorage_ConfigDir", Common::FS::GetUserPath(Common::FS::UserPath::ConfigDir)); | ||
| 75 | log_setting("DataStorage_LoadDir", Common::FS::GetUserPath(Common::FS::UserPath::LoadDir)); | ||
| 76 | log_setting("DataStorage_NandDir", Common::FS::GetUserPath(Common::FS::UserPath::NANDDir)); | ||
| 77 | log_setting("DataStorage_SdmcDir", Common::FS::GetUserPath(Common::FS::UserPath::SDMCDir)); | ||
| 78 | log_setting("Debugging_ProgramArgs", values.program_args); | ||
| 79 | log_setting("Services_BCATBackend", values.bcat_backend); | ||
| 80 | log_setting("Services_BCATBoxcatLocal", values.bcat_boxcat_local); | ||
| 81 | } | ||
| 82 | |||
| 83 | bool IsConfiguringGlobal() { | ||
| 84 | return configuring_global; | ||
| 85 | } | ||
| 86 | |||
| 87 | void SetConfiguringGlobal(bool is_global) { | ||
| 88 | configuring_global = is_global; | ||
| 89 | } | ||
| 90 | |||
| 91 | bool IsGPULevelExtreme() { | ||
| 92 | return values.gpu_accuracy.GetValue() == GPUAccuracy::Extreme; | ||
| 93 | } | ||
| 94 | |||
| 95 | bool IsGPULevelHigh() { | ||
| 96 | return values.gpu_accuracy.GetValue() == GPUAccuracy::Extreme || | ||
| 97 | values.gpu_accuracy.GetValue() == GPUAccuracy::High; | ||
| 98 | } | ||
| 99 | |||
| 100 | float Volume() { | ||
| 101 | if (values.audio_muted) { | ||
| 102 | return 0.0f; | ||
| 103 | } | ||
| 104 | return values.volume.GetValue(); | ||
| 105 | } | ||
| 106 | |||
| 107 | void RestoreGlobalState(bool is_powered_on) { | ||
| 108 | // If a game is running, DO NOT restore the global settings state | ||
| 109 | if (is_powered_on) { | ||
| 110 | return; | ||
| 111 | } | ||
| 112 | |||
| 113 | // Audio | ||
| 114 | values.enable_audio_stretching.SetGlobal(true); | ||
| 115 | values.volume.SetGlobal(true); | ||
| 116 | |||
| 117 | // Core | ||
| 118 | values.use_multi_core.SetGlobal(true); | ||
| 119 | |||
| 120 | // Renderer | ||
| 121 | values.renderer_backend.SetGlobal(true); | ||
| 122 | values.vulkan_device.SetGlobal(true); | ||
| 123 | values.aspect_ratio.SetGlobal(true); | ||
| 124 | values.max_anisotropy.SetGlobal(true); | ||
| 125 | values.use_frame_limit.SetGlobal(true); | ||
| 126 | values.frame_limit.SetGlobal(true); | ||
| 127 | values.use_disk_shader_cache.SetGlobal(true); | ||
| 128 | values.gpu_accuracy.SetGlobal(true); | ||
| 129 | values.use_asynchronous_gpu_emulation.SetGlobal(true); | ||
| 130 | values.use_nvdec_emulation.SetGlobal(true); | ||
| 131 | values.use_vsync.SetGlobal(true); | ||
| 132 | values.use_assembly_shaders.SetGlobal(true); | ||
| 133 | values.use_asynchronous_shaders.SetGlobal(true); | ||
| 134 | values.use_fast_gpu_time.SetGlobal(true); | ||
| 135 | values.bg_red.SetGlobal(true); | ||
| 136 | values.bg_green.SetGlobal(true); | ||
| 137 | values.bg_blue.SetGlobal(true); | ||
| 138 | |||
| 139 | // System | ||
| 140 | values.language_index.SetGlobal(true); | ||
| 141 | values.region_index.SetGlobal(true); | ||
| 142 | values.time_zone_index.SetGlobal(true); | ||
| 143 | values.rng_seed.SetGlobal(true); | ||
| 144 | values.custom_rtc.SetGlobal(true); | ||
| 145 | values.sound_index.SetGlobal(true); | ||
| 146 | |||
| 147 | // Controls | ||
| 148 | values.players.SetGlobal(true); | ||
| 149 | values.use_docked_mode.SetGlobal(true); | ||
| 150 | values.vibration_enabled.SetGlobal(true); | ||
| 151 | values.motion_enabled.SetGlobal(true); | ||
| 152 | } | ||
| 153 | |||
| 154 | } // namespace Settings | ||
diff --git a/src/core/settings.h b/src/core/settings.h deleted file mode 100644 index 0b7d28421..000000000 --- a/src/core/settings.h +++ /dev/null | |||
| @@ -1,265 +0,0 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <array> | ||
| 8 | #include <atomic> | ||
| 9 | #include <chrono> | ||
| 10 | #include <map> | ||
| 11 | #include <optional> | ||
| 12 | #include <string> | ||
| 13 | #include <vector> | ||
| 14 | #include "common/common_types.h" | ||
| 15 | #include "input_common/settings.h" | ||
| 16 | |||
| 17 | namespace Core { | ||
| 18 | class System; | ||
| 19 | } | ||
| 20 | |||
| 21 | namespace Settings { | ||
| 22 | |||
| 23 | enum class RendererBackend { | ||
| 24 | OpenGL = 0, | ||
| 25 | Vulkan = 1, | ||
| 26 | }; | ||
| 27 | |||
| 28 | enum class GPUAccuracy : u32 { | ||
| 29 | Normal = 0, | ||
| 30 | High = 1, | ||
| 31 | Extreme = 2, | ||
| 32 | }; | ||
| 33 | |||
| 34 | enum class CPUAccuracy { | ||
| 35 | Accurate = 0, | ||
| 36 | Unsafe = 1, | ||
| 37 | DebugMode = 2, | ||
| 38 | }; | ||
| 39 | |||
| 40 | template <typename Type> | ||
| 41 | class Setting final { | ||
| 42 | public: | ||
| 43 | Setting() = default; | ||
| 44 | explicit Setting(Type val) : global{val} {} | ||
| 45 | ~Setting() = default; | ||
| 46 | void SetGlobal(bool to_global) { | ||
| 47 | use_global = to_global; | ||
| 48 | } | ||
| 49 | bool UsingGlobal() const { | ||
| 50 | return use_global; | ||
| 51 | } | ||
| 52 | Type GetValue(bool need_global = false) const { | ||
| 53 | if (use_global || need_global) { | ||
| 54 | return global; | ||
| 55 | } | ||
| 56 | return local; | ||
| 57 | } | ||
| 58 | void SetValue(const Type& value) { | ||
| 59 | if (use_global) { | ||
| 60 | global = value; | ||
| 61 | } else { | ||
| 62 | local = value; | ||
| 63 | } | ||
| 64 | } | ||
| 65 | |||
| 66 | private: | ||
| 67 | bool use_global = true; | ||
| 68 | Type global{}; | ||
| 69 | Type local{}; | ||
| 70 | }; | ||
| 71 | |||
| 72 | /** | ||
| 73 | * The InputSetting class allows for getting a reference to either the global or local members. | ||
| 74 | * This is required as we cannot easily modify the values of user-defined types within containers | ||
| 75 | * using the SetValue() member function found in the Setting class. The primary purpose of this | ||
| 76 | * class is to store an array of 10 PlayerInput structs for both the global and local (per-game) | ||
| 77 | * setting and allows for easily accessing and modifying both settings. | ||
| 78 | */ | ||
| 79 | template <typename Type> | ||
| 80 | class InputSetting final { | ||
| 81 | public: | ||
| 82 | InputSetting() = default; | ||
| 83 | explicit InputSetting(Type val) : global{val} {} | ||
| 84 | ~InputSetting() = default; | ||
| 85 | void SetGlobal(bool to_global) { | ||
| 86 | use_global = to_global; | ||
| 87 | } | ||
| 88 | bool UsingGlobal() const { | ||
| 89 | return use_global; | ||
| 90 | } | ||
| 91 | Type& GetValue(bool need_global = false) { | ||
| 92 | if (use_global || need_global) { | ||
| 93 | return global; | ||
| 94 | } | ||
| 95 | return local; | ||
| 96 | } | ||
| 97 | |||
| 98 | private: | ||
| 99 | bool use_global = true; | ||
| 100 | Type global{}; | ||
| 101 | Type local{}; | ||
| 102 | }; | ||
| 103 | |||
| 104 | struct TouchFromButtonMap { | ||
| 105 | std::string name; | ||
| 106 | std::vector<std::string> buttons; | ||
| 107 | }; | ||
| 108 | |||
| 109 | struct Values { | ||
| 110 | // Audio | ||
| 111 | std::string audio_device_id; | ||
| 112 | std::string sink_id; | ||
| 113 | bool audio_muted; | ||
| 114 | Setting<bool> enable_audio_stretching; | ||
| 115 | Setting<float> volume; | ||
| 116 | |||
| 117 | // Core | ||
| 118 | Setting<bool> use_multi_core; | ||
| 119 | |||
| 120 | // Cpu | ||
| 121 | CPUAccuracy cpu_accuracy; | ||
| 122 | |||
| 123 | bool cpuopt_page_tables; | ||
| 124 | bool cpuopt_block_linking; | ||
| 125 | bool cpuopt_return_stack_buffer; | ||
| 126 | bool cpuopt_fast_dispatcher; | ||
| 127 | bool cpuopt_context_elimination; | ||
| 128 | bool cpuopt_const_prop; | ||
| 129 | bool cpuopt_misc_ir; | ||
| 130 | bool cpuopt_reduce_misalign_checks; | ||
| 131 | |||
| 132 | bool cpuopt_unsafe_unfuse_fma; | ||
| 133 | bool cpuopt_unsafe_reduce_fp_error; | ||
| 134 | bool cpuopt_unsafe_inaccurate_nan; | ||
| 135 | |||
| 136 | // Renderer | ||
| 137 | Setting<RendererBackend> renderer_backend; | ||
| 138 | bool renderer_debug; | ||
| 139 | Setting<int> vulkan_device; | ||
| 140 | |||
| 141 | Setting<u16> resolution_factor{1}; | ||
| 142 | Setting<int> fullscreen_mode; | ||
| 143 | Setting<int> aspect_ratio; | ||
| 144 | Setting<int> max_anisotropy; | ||
| 145 | Setting<bool> use_frame_limit; | ||
| 146 | Setting<u16> frame_limit; | ||
| 147 | Setting<bool> use_disk_shader_cache; | ||
| 148 | Setting<GPUAccuracy> gpu_accuracy; | ||
| 149 | Setting<bool> use_asynchronous_gpu_emulation; | ||
| 150 | Setting<bool> use_nvdec_emulation; | ||
| 151 | Setting<bool> use_vsync; | ||
| 152 | Setting<bool> use_assembly_shaders; | ||
| 153 | Setting<bool> use_asynchronous_shaders; | ||
| 154 | Setting<bool> use_fast_gpu_time; | ||
| 155 | |||
| 156 | Setting<float> bg_red; | ||
| 157 | Setting<float> bg_green; | ||
| 158 | Setting<float> bg_blue; | ||
| 159 | |||
| 160 | // System | ||
| 161 | Setting<std::optional<u32>> rng_seed; | ||
| 162 | // Measured in seconds since epoch | ||
| 163 | Setting<std::optional<std::chrono::seconds>> custom_rtc; | ||
| 164 | // Set on game boot, reset on stop. Seconds difference between current time and `custom_rtc` | ||
| 165 | std::chrono::seconds custom_rtc_differential; | ||
| 166 | |||
| 167 | s32 current_user; | ||
| 168 | Setting<s32> language_index; | ||
| 169 | Setting<s32> region_index; | ||
| 170 | Setting<s32> time_zone_index; | ||
| 171 | Setting<s32> sound_index; | ||
| 172 | |||
| 173 | // Controls | ||
| 174 | InputSetting<std::array<PlayerInput, 10>> players; | ||
| 175 | |||
| 176 | Setting<bool> use_docked_mode; | ||
| 177 | |||
| 178 | Setting<bool> vibration_enabled; | ||
| 179 | Setting<bool> enable_accurate_vibrations; | ||
| 180 | |||
| 181 | Setting<bool> motion_enabled; | ||
| 182 | std::string motion_device; | ||
| 183 | std::string udp_input_servers; | ||
| 184 | |||
| 185 | bool mouse_panning; | ||
| 186 | float mouse_panning_sensitivity; | ||
| 187 | bool mouse_enabled; | ||
| 188 | std::string mouse_device; | ||
| 189 | MouseButtonsRaw mouse_buttons; | ||
| 190 | |||
| 191 | bool emulate_analog_keyboard; | ||
| 192 | bool keyboard_enabled; | ||
| 193 | KeyboardKeysRaw keyboard_keys; | ||
| 194 | KeyboardModsRaw keyboard_mods; | ||
| 195 | |||
| 196 | bool debug_pad_enabled; | ||
| 197 | ButtonsRaw debug_pad_buttons; | ||
| 198 | AnalogsRaw debug_pad_analogs; | ||
| 199 | |||
| 200 | TouchscreenInput touchscreen; | ||
| 201 | |||
| 202 | bool use_touch_from_button; | ||
| 203 | std::string touch_device; | ||
| 204 | int touch_from_button_map_index; | ||
| 205 | std::vector<TouchFromButtonMap> touch_from_button_maps; | ||
| 206 | |||
| 207 | std::atomic_bool is_device_reload_pending{true}; | ||
| 208 | |||
| 209 | // Data Storage | ||
| 210 | bool use_virtual_sd; | ||
| 211 | bool gamecard_inserted; | ||
| 212 | bool gamecard_current_game; | ||
| 213 | std::string gamecard_path; | ||
| 214 | |||
| 215 | // Debugging | ||
| 216 | bool record_frame_times; | ||
| 217 | bool use_gdbstub; | ||
| 218 | u16 gdbstub_port; | ||
| 219 | std::string program_args; | ||
| 220 | bool dump_exefs; | ||
| 221 | bool dump_nso; | ||
| 222 | bool reporting_services; | ||
| 223 | bool quest_flag; | ||
| 224 | bool disable_macro_jit; | ||
| 225 | bool extended_logging; | ||
| 226 | bool use_debug_asserts; | ||
| 227 | bool use_auto_stub; | ||
| 228 | |||
| 229 | // Miscellaneous | ||
| 230 | std::string log_filter; | ||
| 231 | bool use_dev_keys; | ||
| 232 | |||
| 233 | // Services | ||
| 234 | std::string bcat_backend; | ||
| 235 | bool bcat_boxcat_local; | ||
| 236 | |||
| 237 | // WebService | ||
| 238 | bool enable_telemetry; | ||
| 239 | std::string web_api_url; | ||
| 240 | std::string yuzu_username; | ||
| 241 | std::string yuzu_token; | ||
| 242 | |||
| 243 | // Add-Ons | ||
| 244 | std::map<u64, std::vector<std::string>> disabled_addons; | ||
| 245 | }; | ||
| 246 | |||
| 247 | extern Values values; | ||
| 248 | |||
| 249 | bool IsConfiguringGlobal(); | ||
| 250 | void SetConfiguringGlobal(bool is_global); | ||
| 251 | |||
| 252 | bool IsGPULevelExtreme(); | ||
| 253 | bool IsGPULevelHigh(); | ||
| 254 | |||
| 255 | float Volume(); | ||
| 256 | |||
| 257 | std::string GetTimeZoneString(); | ||
| 258 | |||
| 259 | void Apply(Core::System& system); | ||
| 260 | void LogSettings(); | ||
| 261 | |||
| 262 | // Restore the global state of all applicable settings in the Values struct | ||
| 263 | void RestoreGlobalState(bool is_powered_on); | ||
| 264 | |||
| 265 | } // namespace Settings | ||
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp index d11b15f38..6dcff5400 100644 --- a/src/core/telemetry_session.cpp +++ b/src/core/telemetry_session.cpp | |||
| @@ -12,10 +12,10 @@ | |||
| 12 | #include "common/file_util.h" | 12 | #include "common/file_util.h" |
| 13 | #include "common/logging/log.h" | 13 | #include "common/logging/log.h" |
| 14 | 14 | ||
| 15 | #include "common/settings.h" | ||
| 15 | #include "core/file_sys/control_metadata.h" | 16 | #include "core/file_sys/control_metadata.h" |
| 16 | #include "core/file_sys/patch_manager.h" | 17 | #include "core/file_sys/patch_manager.h" |
| 17 | #include "core/loader/loader.h" | 18 | #include "core/loader/loader.h" |
| 18 | #include "core/settings.h" | ||
| 19 | #include "core/telemetry_session.h" | 19 | #include "core/telemetry_session.h" |
| 20 | 20 | ||
| 21 | #ifdef ENABLE_WEB_SERVICE | 21 | #ifdef ENABLE_WEB_SERVICE |