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