diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-02-24 22:24:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-24 22:24:01 +0100 |
commit | a93d249ac161e190b8c7046917bd9a3b6e79a0e0 (patch) | |
tree | e7589e51b5bf334aef78658b2e7efddcce3578dd /src/core/hle/service/glue/time/worker.cpp | |
parent | Merge pull request #13153 from german77/defaultset (diff) | |
parent | service: set: Fix GetSettingsItemValue (diff) | |
download | yuzu-a93d249ac161e190b8c7046917bd9a3b6e79a0e0.tar yuzu-a93d249ac161e190b8c7046917bd9a3b6e79a0e0.tar.gz yuzu-a93d249ac161e190b8c7046917bd9a3b6e79a0e0.tar.bz2 yuzu-a93d249ac161e190b8c7046917bd9a3b6e79a0e0.tar.lz yuzu-a93d249ac161e190b8c7046917bd9a3b6e79a0e0.tar.xz yuzu-a93d249ac161e190b8c7046917bd9a3b6e79a0e0.tar.zst yuzu-a93d249ac161e190b8c7046917bd9a3b6e79a0e0.zip |
Diffstat (limited to 'src/core/hle/service/glue/time/worker.cpp')
-rw-r--r-- | src/core/hle/service/glue/time/worker.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/hle/service/glue/time/worker.cpp b/src/core/hle/service/glue/time/worker.cpp index b28569b68..b6bbd7965 100644 --- a/src/core/hle/service/glue/time/worker.cpp +++ b/src/core/hle/service/glue/time/worker.cpp @@ -26,12 +26,9 @@ Service::PSC::Time::SystemClockContext g_report_ephemeral_clock_context{}; template <typename T> T GetSettingsItemValue(std::shared_ptr<Service::Set::ISystemSettingsServer>& set_sys, const char* category, const char* name) { - std::vector<u8> interval_buf; - auto res = set_sys->GetSettingsItemValueImpl(interval_buf, category, name); - ASSERT(res == ResultSuccess); - T v{}; - std::memcpy(&v, interval_buf.data(), sizeof(T)); + auto res = set_sys->GetSettingsItemValueImpl(v, category, name); + ASSERT(res == ResultSuccess); return v; } |