IServiceCreator.cs 679 B

123456789101112131415161718192021222324252627
  1. using Ryujinx.HLE.HOS.Ipc;
  2. using System.Collections.Generic;
  3. namespace Ryujinx.HLE.HOS.Services.Friend
  4. {
  5. class IServiceCreator : IpcService
  6. {
  7. private Dictionary<int, ServiceProcessRequest> _commands;
  8. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
  9. public IServiceCreator()
  10. {
  11. _commands = new Dictionary<int, ServiceProcessRequest>
  12. {
  13. { 0, CreateFriendService }
  14. };
  15. }
  16. public static long CreateFriendService(ServiceCtx context)
  17. {
  18. MakeObject(context, new IFriendService());
  19. return 0;
  20. }
  21. }
  22. }