diff options
author | bunnei <bunneidev@gmail.com> | 2019-12-23 00:10:59 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2020-01-04 19:48:30 +0100 |
commit | fab2607c6bae25f50912b32e1cbbfb5a6191916c (patch) | |
tree | bdcff3de0871a546f8e1399a6b1ba2869a569d04 /src/core/hle/service/time/time.cpp | |
parent | system_archive: Add a basic HLE implementation for time zone binary. (diff) | |
download | yuzu-fab2607c6bae25f50912b32e1cbbfb5a6191916c.tar yuzu-fab2607c6bae25f50912b32e1cbbfb5a6191916c.tar.gz yuzu-fab2607c6bae25f50912b32e1cbbfb5a6191916c.tar.bz2 yuzu-fab2607c6bae25f50912b32e1cbbfb5a6191916c.tar.lz yuzu-fab2607c6bae25f50912b32e1cbbfb5a6191916c.tar.xz yuzu-fab2607c6bae25f50912b32e1cbbfb5a6191916c.tar.zst yuzu-fab2607c6bae25f50912b32e1cbbfb5a6191916c.zip |
Diffstat (limited to 'src/core/hle/service/time/time.cpp')
-rw-r--r-- | src/core/hle/service/time/time.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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<ITimeZoneService>(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<u32>(clock_core.IsStandardNetworkSystemClockAccuracySufficient(system)); +} + void Module::Interface::CalculateMonotonicSystemClockBaseTimePoint(Kernel::HLERequestContext& ctx) { LOG_DEBUG(Service_Time, "called"); |