IGeneralService.cs 850 B

123456789101112131415161718192021222324252627282930313233
  1. using Ryujinx.HLE.Logging;
  2. using Ryujinx.HLE.OsHle.Ipc;
  3. using System.Collections.Generic;
  4. namespace Ryujinx.HLE.OsHle.Services.Nifm
  5. {
  6. class IGeneralService : IpcService
  7. {
  8. private Dictionary<int, ServiceProcessRequest> m_Commands;
  9. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  10. public IGeneralService()
  11. {
  12. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  13. {
  14. { 4, CreateRequest }
  15. };
  16. }
  17. //CreateRequest(i32)
  18. public long CreateRequest(ServiceCtx Context)
  19. {
  20. int Unknown = Context.RequestData.ReadInt32();
  21. MakeObject(Context, new IRequest());
  22. Context.Ns.Log.PrintStub(LogClass.ServiceNifm, "Stubbed.");
  23. return 0;
  24. }
  25. }
  26. }