IManagerForApplication.cs 991 B

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