ServiceAcc.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Ryujinx.Core.OsHle.Ipc;
  2. using System.Collections.Generic;
  3. using static Ryujinx.Core.OsHle.IpcServices.ObjHelper;
  4. namespace Ryujinx.Core.OsHle.IpcServices.Acc
  5. {
  6. class ServiceAcc : IIpcService
  7. {
  8. private Dictionary<int, ServiceProcessRequest> m_Commands;
  9. public IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  10. public ServiceAcc()
  11. {
  12. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  13. {
  14. { 3, ListOpenUsers },
  15. { 5, GetProfile },
  16. { 100, InitializeApplicationInfo },
  17. { 101, GetBaasAccountManagerForApplication }
  18. };
  19. }
  20. public long ListOpenUsers(ServiceCtx Context)
  21. {
  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. return 0;
  32. }
  33. public long GetBaasAccountManagerForApplication(ServiceCtx Context)
  34. {
  35. MakeObject(Context, new IManagerForApplication());
  36. return 0;
  37. }
  38. }
  39. }