ServiceTime.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using Ryujinx.Core.OsHle.Objects.Time;
  2. using static Ryujinx.Core.OsHle.Objects.ObjHelper;
  3. namespace Ryujinx.Core.OsHle.Services
  4. {
  5. static partial class Service
  6. {
  7. public static long TimeGetStandardUserSystemClock(ServiceCtx Context)
  8. {
  9. MakeObject(Context, new ISystemClock(SystemClockType.User));
  10. return 0;
  11. }
  12. public static long TimeGetStandardNetworkSystemClock(ServiceCtx Context)
  13. {
  14. MakeObject(Context, new ISystemClock(SystemClockType.Network));
  15. return 0;
  16. }
  17. public static long TimeGetStandardSteadyClock(ServiceCtx Context)
  18. {
  19. MakeObject(Context, new ISteadyClock());
  20. return 0;
  21. }
  22. public static long TimeGetTimeZoneService(ServiceCtx Context)
  23. {
  24. MakeObject(Context, new ITimeZoneService());
  25. return 0;
  26. }
  27. public static long TimeGetStandardLocalSystemClock(ServiceCtx Context)
  28. {
  29. MakeObject(Context, new ISystemClock(SystemClockType.Local));
  30. return 0;
  31. }
  32. }
  33. }