diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-11 19:50:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-11 19:50:08 +0200 |
commit | 0c19147e09a2ebbb64bc1735eb8fee1b5ee807d5 (patch) | |
tree | a55cd9991104cc241f86b29f7945d750539625c1 /src/core/hle/service/time/time_manager.cpp | |
parent | Merge pull request #6183 from MerryMage/dynarmic (diff) | |
parent | service: time: Setup the network clock with the local clock context (diff) | |
download | yuzu-0c19147e09a2ebbb64bc1735eb8fee1b5ee807d5.tar yuzu-0c19147e09a2ebbb64bc1735eb8fee1b5ee807d5.tar.gz yuzu-0c19147e09a2ebbb64bc1735eb8fee1b5ee807d5.tar.bz2 yuzu-0c19147e09a2ebbb64bc1735eb8fee1b5ee807d5.tar.lz yuzu-0c19147e09a2ebbb64bc1735eb8fee1b5ee807d5.tar.xz yuzu-0c19147e09a2ebbb64bc1735eb8fee1b5ee807d5.tar.zst yuzu-0c19147e09a2ebbb64bc1735eb8fee1b5ee807d5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/time/time_manager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/service/time/time_manager.cpp b/src/core/hle/service/time/time_manager.cpp index 1f7309f6b..51becd074 100644 --- a/src/core/hle/service/time/time_manager.cpp +++ b/src/core/hle/service/time/time_manager.cpp @@ -44,7 +44,11 @@ struct TimeManager::Impl final { const auto system_time{Clock::TimeSpanType::FromSeconds(GetExternalRtcValue())}; SetupStandardSteadyClock(system, Common::UUID::Generate(), system_time, {}, {}); SetupStandardLocalSystemClock(system, {}, system_time.ToSeconds()); - SetupStandardNetworkSystemClock({}, standard_network_clock_accuracy); + + Clock::SystemClockContext clock_context{}; + standard_local_system_clock_core.GetClockContext(system, clock_context); + + SetupStandardNetworkSystemClock(clock_context, standard_network_clock_accuracy); SetupStandardUserSystemClock(system, {}, Clock::SteadyClockTimePoint::GetRandom()); SetupEphemeralNetworkSystemClock(); } |