mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-09-20 22:42:02 -05:00
Split main project into core,graphics and chocolarm4 subproject (#29)
This commit is contained in:
45
Ryujinx.Core/OsHle/Services/ServiceTime.cs
Normal file
45
Ryujinx.Core/OsHle/Services/ServiceTime.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using Ryujinx.Core.OsHle.Objects.Time;
|
||||
|
||||
using static Ryujinx.Core.OsHle.Objects.ObjHelper;
|
||||
|
||||
namespace Ryujinx.Core.OsHle.Services
|
||||
{
|
||||
static partial class Service
|
||||
{
|
||||
public static long TimeGetStandardUserSystemClock(ServiceCtx Context)
|
||||
{
|
||||
MakeObject(Context, new ISystemClock(SystemClockType.User));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static long TimeGetStandardNetworkSystemClock(ServiceCtx Context)
|
||||
{
|
||||
MakeObject(Context, new ISystemClock(SystemClockType.Network));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static long TimeGetStandardSteadyClock(ServiceCtx Context)
|
||||
{
|
||||
MakeObject(Context, new ISteadyClock());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static long TimeGetTimeZoneService(ServiceCtx Context)
|
||||
{
|
||||
MakeObject(Context, new ITimeZoneService());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static long TimeGetStandardLocalSystemClock(ServiceCtx Context)
|
||||
{
|
||||
MakeObject(Context, new ISystemClock(SystemClockType.Local));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user