mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00:00
54b79dffa8
* Abstract SteadyClockCore to follow Nintendo changes in 4.x This is the ground work for 4.0.0 support * Implement TickBasedSteadyClockCore Preparation for the ephemeral clock. * Refactor SystemClockCore to follow 4.0.0 changes * Implement EphemeralNetworkSystemClock * Implement GetSnapshotClock & GetSnapshotClockFromSystemClockContext * Implement CalculateStandardUserSystemClockDifferenceByUser & CalculateSpanBetween * Remove an outdated comment & unused import * Fix a nit and GetClockSnapshot * Address comment
30 lines
818 B
C#
30 lines
818 B
C#
namespace Ryujinx.HLE.HOS.Services.Time.Clock
|
|
{
|
|
class StandardLocalSystemClockCore : SystemClockCore
|
|
{
|
|
private static StandardLocalSystemClockCore _instance;
|
|
|
|
public static StandardLocalSystemClockCore Instance
|
|
{
|
|
get
|
|
{
|
|
if (_instance == null)
|
|
{
|
|
_instance = new StandardLocalSystemClockCore(StandardSteadyClockCore.Instance);
|
|
}
|
|
|
|
return _instance;
|
|
}
|
|
}
|
|
|
|
public StandardLocalSystemClockCore(StandardSteadyClockCore steadyClockCore) : base(steadyClockCore) {}
|
|
|
|
public override ResultCode Flush(SystemClockContext context)
|
|
{
|
|
// TODO: set:sys SetUserSystemClockContext
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
}
|