ServiceLm.cs 736 B

12345678910111213141516171819202122232425262728293031
  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.Lm
  5. {
  6. class ServiceLm : IIpcService
  7. {
  8. private Dictionary<int, ServiceProcessRequest> m_Commands;
  9. public IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  10. public ServiceLm()
  11. {
  12. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  13. {
  14. { 0, Initialize }
  15. };
  16. }
  17. public long Initialize(ServiceCtx Context)
  18. {
  19. Context.Session.Initialize();
  20. MakeObject(Context, new ILogger());
  21. return 0;
  22. }
  23. }
  24. }