IAccountServiceForApplication.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. { 0, GetUserCount },
  14. { 3, ListOpenUsers },
  15. { 5, GetProfile },
  16. { 100, InitializeApplicationInfo },
  17. { 101, GetBaasAccountManagerForApplication }
  18. };
  19. }
  20. public long GetUserCount(ServiceCtx Context)
  21. {
  22. Context.ResponseData.Write(0);
  23. Logging.Stub(LogClass.ServiceAcc, "Stubbed");
  24. return 0;
  25. }
  26. public long ListOpenUsers(ServiceCtx Context)
  27. {
  28. Logging.Stub(LogClass.ServiceAcc, "Stubbed");
  29. return 0;
  30. }
  31. public long GetProfile(ServiceCtx Context)
  32. {
  33. MakeObject(Context, new IProfile());
  34. return 0;
  35. }
  36. public long InitializeApplicationInfo(ServiceCtx Context)
  37. {
  38. Logging.Stub(LogClass.ServiceAcc, "Stubbed");
  39. return 0;
  40. }
  41. public long GetBaasAccountManagerForApplication(ServiceCtx Context)
  42. {
  43. MakeObject(Context, new IManagerForApplication());
  44. return 0;
  45. }
  46. }
  47. }