From 2490ffbbce06659f0171a257ff08be6a5ac8fb2e Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Wed, 10 Mar 2021 11:40:51 -0500 Subject: [PATCH] time: Assign the current time point to the ClockSnapshot Fixes the timer in Super Smash Bros Ultimate's Spirit Board. --- src/core/hle/service/time/time.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp index 18629dd7e..1c4b0134a 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) {