IAccountServiceForApplication.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using Ryujinx.Core.OsHle.Ipc;
  2. using System.Collections.Generic;
  3. namespace Ryujinx.Core.OsHle.Services.Acc
  4. {
  5. class IAccountServiceForApplication : IpcService
  6. {
  7. private Dictionary<int, ServiceProcessRequest> m_Commands;
  8. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  9. public IAccountServiceForApplication()
  10. {
  11. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  12. {
  13. { 3, ListOpenUsers },
  14. { 5, GetProfile },
  15. { 100, InitializeApplicationInfo },
  16. { 101, GetBaasAccountManagerForApplication }
  17. };
  18. }
  19. public long ListOpenUsers(ServiceCtx Context)
  20. {
  21. Logging.Stub(LogClass.ServiceAcc, "Stubbed");
  22. return 0;
  23. }
  24. public long GetProfile(ServiceCtx Context)
  25. {
  26. MakeObject(Context, new IProfile());
  27. return 0;
  28. }
  29. public long InitializeApplicationInfo(ServiceCtx Context)
  30. {
  31. Logging.Stub(LogClass.ServiceAcc, "Stubbed");
  32. return 0;
  33. }
  34. public long GetBaasAccountManagerForApplication(ServiceCtx Context)
  35. {
  36. MakeObject(Context, new IManagerForApplication());
  37. return 0;
  38. }
  39. }
  40. }