From fab2607c6bae25f50912b32e1cbbfb5a6191916c Mon Sep 17 00:00:00 2001 From: bunnei Date: Sun, 22 Dec 2019 18:10:59 -0500 Subject: service: time: Implement IsStandardNetworkSystemClockAccuracySufficient. --- src/core/hle/service/time/time.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core/hle/service/time/time.cpp') diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp index 970aed0bb..2053fa078 100644 --- a/src/core/hle/service/time/time.cpp +++ b/src/core/hle/service/time/time.cpp @@ -199,6 +199,15 @@ void Module::Interface::GetTimeZoneService(Kernel::HLERequestContext& ctx) { rb.PushIpcInterface(module->GetTimeManager().GetTimeZoneContentManager()); } +void Module::Interface::IsStandardNetworkSystemClockAccuracySufficient( + Kernel::HLERequestContext& ctx) { + LOG_DEBUG(Service_Time, "called"); + auto& clock_core{module->GetTimeManager().GetStandardNetworkSystemClockCore()}; + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(RESULT_SUCCESS); + rb.Push(clock_core.IsStandardNetworkSystemClockAccuracySufficient(system)); +} + void Module::Interface::CalculateMonotonicSystemClockBaseTimePoint(Kernel::HLERequestContext& ctx) { LOG_DEBUG(Service_Time, "called"); -- cgit v1.2.3