summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-03-14 08:15:54 +0100
committerGitHub <noreply@github.com>2021-03-14 08:15:54 +0100
commitd3a4a192fe26e251f521f0311b2d712f5db9918e (patch)
tree9f1840ecfc0cb8a379fdf87de5a7af0d50a97a12 /src/core/hle
parentMerge pull request #6053 from Morph1984/time-CalculateSpanBetween (diff)
parenttime: Assign the current time point to the ClockSnapshot (diff)
downloadyuzu-d3a4a192fe26e251f521f0311b2d712f5db9918e.tar
yuzu-d3a4a192fe26e251f521f0311b2d712f5db9918e.tar.gz
yuzu-d3a4a192fe26e251f521f0311b2d712f5db9918e.tar.bz2
yuzu-d3a4a192fe26e251f521f0311b2d712f5db9918e.tar.lz
yuzu-d3a4a192fe26e251f521f0311b2d712f5db9918e.tar.xz
yuzu-d3a4a192fe26e251f521f0311b2d712f5db9918e.tar.zst
yuzu-d3a4a192fe26e251f521f0311b2d712f5db9918e.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/time/time.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp
index 16c942e21..78543688f 100644
--- a/src/core/hle/service/time/time.cpp
+++ b/src/core/hle/service/time/time.cpp
@@ -140,6 +140,8 @@ ResultCode Module::Interface::GetClockSnapshotFromSystemClockContextInternal(
const auto current_time_point{
time_manager.GetStandardSteadyClockCore().GetCurrentTimePoint(system)};
+ clock_snapshot.steady_clock_time_point = current_time_point;
+
if (const ResultCode result{Clock::ClockSnapshot::GetCurrentTime(
clock_snapshot.user_time, current_time_point, clock_snapshot.user_context)};
result != RESULT_SUCCESS) {