2018-02-20 12:09:23 -08:00
|
|
|
using Ryujinx.Core.OsHle.Objects.Time;
|
2018-02-04 15:08:20 -08:00
|
|
|
|
2018-02-20 12:09:23 -08:00
|
|
|
using static Ryujinx.Core.OsHle.Objects.ObjHelper;
|
2018-02-04 15:08:20 -08:00
|
|
|
|
2018-02-20 12:09:23 -08:00
|
|
|
namespace Ryujinx.Core.OsHle.Services
|
2018-02-04 15:08:20 -08:00
|
|
|
{
|
|
|
|
static partial class Service
|
|
|
|
{
|
|
|
|
public static long TimeGetStandardUserSystemClock(ServiceCtx Context)
|
|
|
|
{
|
2018-02-14 20:32:25 -08:00
|
|
|
MakeObject(Context, new ISystemClock(SystemClockType.User));
|
2018-02-04 15:08:20 -08:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long TimeGetStandardNetworkSystemClock(ServiceCtx Context)
|
|
|
|
{
|
2018-02-13 21:43:21 -08:00
|
|
|
MakeObject(Context, new ISystemClock(SystemClockType.Network));
|
2018-02-04 15:08:20 -08:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long TimeGetStandardSteadyClock(ServiceCtx Context)
|
|
|
|
{
|
2018-02-09 16:14:55 -08:00
|
|
|
MakeObject(Context, new ISteadyClock());
|
2018-02-04 15:08:20 -08:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long TimeGetTimeZoneService(ServiceCtx Context)
|
|
|
|
{
|
2018-02-09 16:14:55 -08:00
|
|
|
MakeObject(Context, new ITimeZoneService());
|
2018-02-04 15:08:20 -08:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2018-02-13 21:43:21 -08:00
|
|
|
|
|
|
|
public static long TimeGetStandardLocalSystemClock(ServiceCtx Context)
|
|
|
|
{
|
|
|
|
MakeObject(Context, new ISystemClock(SystemClockType.Local));
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-02-04 15:08:20 -08:00
|
|
|
}
|
|
|
|
}
|