2019-07-25 16:44:51 +02:00
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Time.Clock
|
2019-07-14 22:50:11 +02:00
|
|
|
|
{
|
|
|
|
|
class StandardLocalSystemClockCore : SystemClockCore
|
|
|
|
|
{
|
2019-07-25 16:44:51 +02:00
|
|
|
|
private static StandardLocalSystemClockCore _instance;
|
2019-07-14 22:50:11 +02:00
|
|
|
|
|
|
|
|
|
public static StandardLocalSystemClockCore Instance
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2019-07-25 16:44:51 +02:00
|
|
|
|
if (_instance == null)
|
2019-07-14 22:50:11 +02:00
|
|
|
|
{
|
2019-07-25 16:44:51 +02:00
|
|
|
|
_instance = new StandardLocalSystemClockCore(StandardSteadyClockCore.Instance);
|
2019-07-14 22:50:11 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-07-25 16:44:51 +02:00
|
|
|
|
return _instance;
|
2019-07-14 22:50:11 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-25 16:44:51 +02:00
|
|
|
|
public StandardLocalSystemClockCore(StandardSteadyClockCore steadyClockCore) : base(steadyClockCore) {}
|
2019-07-14 22:50:11 +02:00
|
|
|
|
|
|
|
|
|
public override ResultCode Flush(SystemClockContext context)
|
|
|
|
|
{
|
|
|
|
|
// TODO: set:sys SetUserSystemClockContext
|
|
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|