diff options
author | bunnei <bunneidev@gmail.com> | 2021-03-14 08:15:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 08:15:54 +0100 |
commit | d3a4a192fe26e251f521f0311b2d712f5db9918e (patch) | |
tree | 9f1840ecfc0cb8a379fdf87de5a7af0d50a97a12 /src/core | |
parent | Merge pull request #6053 from Morph1984/time-CalculateSpanBetween (diff) | |
parent | time: Assign the current time point to the ClockSnapshot (diff) | |
download | yuzu-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')
-rw-r--r-- | src/core/hle/service/time/time.cpp | 2 |
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) { |