mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-07 10:48:28 +02:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user