ServiceAcc.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using Ryujinx.Core.OsHle.Ipc;
  2. using System.Collections.Generic;
  3. namespace Ryujinx.Core.OsHle.Services.Acc
  4. {
  5. class ServiceAcc : IpcService
  6. {
  7. private Dictionary<int, ServiceProcessRequest> m_Commands;
  8. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  9. public ServiceAcc()
  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. return 0;
  22. }
  23. public long GetProfile(ServiceCtx Context)
  24. {
  25. MakeObject(Context, new IProfile());
  26. return 0;
  27. }
  28. public long InitializeApplicationInfo(ServiceCtx Context)
  29. {
  30. return 0;
  31. }
  32. public long GetBaasAccountManagerForApplication(ServiceCtx Context)
  33. {
  34. MakeObject(Context, new IManagerForApplication());
  35. return 0;
  36. }
  37. }
  38. }