Sfoglia il codice sorgente

time: Assign the current time point to the ClockSnapshot

Fixes the timer in Super Smash Bros Ultimate's Spirit Board.
Morph 5 anni fa
parent
commit
2490ffbbce
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/core/hle/service/time/time.cpp

+ 2 - 0
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) {