diff options
| author | 2021-04-14 16:07:40 -0700 | |
|---|---|---|
| committer | 2021-04-14 16:24:03 -0700 | |
| commit | a4c6712a4be249bf668df7f0ff83a0a5236283b2 (patch) | |
| tree | f05e183692b6b1e4096d285fb77db50f048ae82d /src/common/settings.cpp | |
| 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 '')
| -rw-r--r-- | src/common/settings.cpp (renamed from src/core/settings.cpp) | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/core/settings.cpp b/src/common/settings.cpp index 2ae5196e0..702b6598d 100644 --- a/src/core/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | 1 | // Copyright 2021 yuzu Emulator Project |
| 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 | ||
| @@ -7,10 +7,7 @@ | |||
| 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/logging/log.h" | 9 | #include "common/logging/log.h" |
| 10 | #include "core/core.h" | 10 | #include "common/settings.h" |
| 11 | #include "core/hle/service/hid/hid.h" | ||
| 12 | #include "core/settings.h" | ||
| 13 | #include "video_core/renderer_base.h" | ||
| 14 | 11 | ||
| 15 | namespace Settings { | 12 | namespace Settings { |
| 16 | 13 | ||
| @@ -32,14 +29,6 @@ std::string GetTimeZoneString() { | |||
| 32 | return timezones[time_zone_index]; | 29 | return timezones[time_zone_index]; |
| 33 | } | 30 | } |
| 34 | 31 | ||
| 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() { | 32 | void LogSettings() { |
| 44 | const auto log_setting = [](std::string_view name, const auto& value) { | 33 | const auto log_setting = [](std::string_view name, const auto& value) { |
| 45 | LOG_INFO(Config, "{}: {}", name, value); | 34 | LOG_INFO(Config, "{}: {}", name, value); |