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/ISystemClock.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/ISystemClock.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Time/ISystemClock.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Time/ISystemClock.cs b/Ryujinx.HLE/HOS/Services/Time/ISystemClock.cs index ddd67a42..d496dcdc 100644 --- a/Ryujinx.HLE/HOS/Services/Time/ISystemClock.cs +++ b/Ryujinx.HLE/HOS/Services/Time/ISystemClock.cs @@ -29,7 +29,7 @@ namespace Ryujinx.HLE.HOS.Services.Time if (currentTimePoint.ClockSourceId == clockContext.SteadyTimePoint.ClockSourceId) { - ulong posixTime = clockContext.Offset + currentTimePoint.TimePoint; + long posixTime = clockContext.Offset + currentTimePoint.TimePoint; context.ResponseData.Write(posixTime); @@ -49,7 +49,7 @@ namespace Ryujinx.HLE.HOS.Services.Time return ResultCode.PermissionDenied; } - ulong posixTime = context.RequestData.ReadUInt64(); + long posixTime = context.RequestData.ReadInt64(); SteadyClockCore steadyClockCore = _clockCore.GetSteadyClockCore(); SteadyClockTimePoint currentTimePoint = steadyClockCore.GetCurrentTimePoint(context.Thread); |
