IManagerForApplication.cs 952 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using Ryujinx.Core.OsHle.Ipc;
  2. using System.Collections.Generic;
  3. namespace Ryujinx.Core.OsHle.Services.Acc
  4. {
  5. class IManagerForApplication : IpcService
  6. {
  7. private Dictionary<int, ServiceProcessRequest> m_Commands;
  8. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  9. public IManagerForApplication()
  10. {
  11. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  12. {
  13. { 0, CheckAvailability },
  14. { 1, GetAccountId }
  15. };
  16. }
  17. public long CheckAvailability(ServiceCtx Context)
  18. {
  19. Logging.Stub(LogClass.ServiceAcc, "Stubbed");
  20. return 0;
  21. }
  22. public long GetAccountId(ServiceCtx Context)
  23. {
  24. Logging.Stub(LogClass.ServiceAcc, "AccountId = 0xcafeL");
  25. Context.ResponseData.Write(0xcafeL);
  26. return 0;
  27. }
  28. }
  29. }