IAccountServiceForApplication.cs 1.7 KB

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