diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-15 02:47:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-15 02:47:18 +0200 |
commit | de5bf640b7309450357074083a9ac397f251adbc (patch) | |
tree | e7c9b9845f7751c2cc4a00dbf05798ff2a69490d /src/core/core.cpp | |
parent | Merge pull request #6197 from ameerj/kreslimit-cleanup (diff) | |
parent | common: Move settings to common from core. (diff) | |
download | yuzu-de5bf640b7309450357074083a9ac397f251adbc.tar yuzu-de5bf640b7309450357074083a9ac397f251adbc.tar.gz yuzu-de5bf640b7309450357074083a9ac397f251adbc.tar.bz2 yuzu-de5bf640b7309450357074083a9ac397f251adbc.tar.lz yuzu-de5bf640b7309450357074083a9ac397f251adbc.tar.xz yuzu-de5bf640b7309450357074083a9ac397f251adbc.tar.zst yuzu-de5bf640b7309450357074083a9ac397f251adbc.zip |
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
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 @@ #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 Core |