diff options
| author | 2021-03-10 11:40:51 -0500 | |
|---|---|---|
| committer | 2021-03-10 11:40:51 -0500 | |
| commit | 2490ffbbce06659f0171a257ff08be6a5ac8fb2e (patch) | |
| tree | 2a702813991752ee9e9e546a334eb7189a395da1 | |
| parent | Merge pull request #5891 from ameerj/bgra-ogl (diff) | |
| download | yuzu-2490ffbbce06659f0171a257ff08be6a5ac8fb2e.tar.gz yuzu-2490ffbbce06659f0171a257ff08be6a5ac8fb2e.tar.xz yuzu-2490ffbbce06659f0171a257ff08be6a5ac8fb2e.zip | |
time: Assign the current time point to the ClockSnapshot
Fixes the timer in Super Smash Bros Ultimate's Spirit Board.
Diffstat (limited to '')
| -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 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( | |||
| 140 | 140 | ||
| 141 | const auto current_time_point{ | 141 | const auto current_time_point{ |
| 142 | time_manager.GetStandardSteadyClockCore().GetCurrentTimePoint(system)}; | 142 | time_manager.GetStandardSteadyClockCore().GetCurrentTimePoint(system)}; |
| 143 | clock_snapshot.steady_clock_time_point = current_time_point; | ||
| 144 | |||
| 143 | if (const ResultCode result{Clock::ClockSnapshot::GetCurrentTime( | 145 | if (const ResultCode result{Clock::ClockSnapshot::GetCurrentTime( |
| 144 | clock_snapshot.user_time, current_time_point, clock_snapshot.user_context)}; | 146 | clock_snapshot.user_time, current_time_point, clock_snapshot.user_context)}; |
| 145 | result != RESULT_SUCCESS) { | 147 | result != RESULT_SUCCESS) { |