Skip to content

Commit

Permalink
time: Do not set setup value to posix time
Browse files Browse the repository at this point in the history
This should fix local and network clock returning 0 under usage with
shared memory.

This probably fix #2430.
  • Loading branch information
marysaka committed May 5, 2023
1 parent 4d16079 commit dc9df8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ryujinx.HLE/HOS/Horizon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public Horizon(Switch device)
internalOffset = new TimeSpanType(-internalOffset.NanoSeconds);

// First init the standard steady clock
TimeServiceManager.Instance.SetupStandardSteadyClock(TickSource, clockSourceId, systemTime, internalOffset, TimeSpanType.Zero, false);
TimeServiceManager.Instance.SetupStandardSteadyClock(TickSource, clockSourceId, TimeSpanType.Zero, internalOffset, TimeSpanType.Zero, false);
TimeServiceManager.Instance.SetupStandardLocalSystemClock(TickSource, new SystemClockContext(), systemTime.ToSeconds());

if (NxSettings.Settings.TryGetValue("time!standard_network_clock_sufficient_accuracy_minutes", out object standardNetworkClockSufficientAccuracyMinutes))
Expand Down

0 comments on commit dc9df8c

Please sign in to comment.