diff options
| author | Thomas Guillemard <me@thog.eu> | 2019-07-15 19:52:35 +0200 |
|---|---|---|
| committer | Ac_K <Acoustik666@gmail.com> | 2019-07-15 19:52:35 +0200 |
| commit | 1f3a34dd7a5977fc340de310b2109493e5e6973f (patch) | |
| tree | 95b6e42b3e99fec08b1c361fe8fb82510471514d /Ryujinx.HLE/HOS/Services/Time/IStaticService.cs | |
| parent | d8424a63c637f0636e301252b2b8a1fb90f2457d (diff) | |
Implement time:* 2.0.0 & 3.0.0 commands (#735)
* Finish ISteadyClock implementation
* Implement IsStandardNetworkSystemClockAccuracySufficient
Also use signed values for offsets and TimeSpanType
* Address comments
* Fix one missing nit and improve one comment
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Time/IStaticService.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Time/IStaticService.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Time/IStaticService.cs b/Ryujinx.HLE/HOS/Services/Time/IStaticService.cs index 10c659c5..8c5ae65c 100644 --- a/Ryujinx.HLE/HOS/Services/Time/IStaticService.cs +++ b/Ryujinx.HLE/HOS/Services/Time/IStaticService.cs @@ -106,6 +106,15 @@ namespace Ryujinx.HLE.HOS.Services.Time return StandardUserSystemClockCore.Instance.SetAutomaticCorrectionEnabled(context.Thread, autoCorrectionEnabled); } + [Command(200)] // 3.0.0+ + // IsStandardNetworkSystemClockAccuracySufficient() -> bool + public ResultCode IsStandardNetworkSystemClockAccuracySufficient(ServiceCtx context) + { + context.ResponseData.Write(StandardNetworkSystemClockCore.Instance.IsStandardNetworkSystemClockAccuracySufficient(context.Thread)); + + return ResultCode.Success; + } + [Command(300)] // 4.0.0+ // CalculateMonotonicSystemClockBaseTimePoint(nn::time::SystemClockContext) -> u64 public ResultCode CalculateMonotonicSystemClockBaseTimePoint(ServiceCtx context) |
