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