KPort.cs 753 B

12345678910111213141516171819202122232425262728
  1. using Ryujinx.HLE.HOS.Kernel.Common;
  2. namespace Ryujinx.HLE.HOS.Kernel.Ipc
  3. {
  4. class KPort : KAutoObject
  5. {
  6. public KServerPort ServerPort { get; private set; }
  7. public KClientPort ClientPort { get; private set; }
  8. private long _nameAddress;
  9. private bool _isLight;
  10. public KPort(Horizon system) : base(system)
  11. {
  12. ServerPort = new KServerPort(system);
  13. ClientPort = new KClientPort(system);
  14. }
  15. public void Initialize(int maxSessions, bool isLight, long nameAddress)
  16. {
  17. ServerPort.Initialize(this);
  18. ClientPort.Initialize(this, maxSessions);
  19. _isLight = isLight;
  20. _nameAddress = nameAddress;
  21. }
  22. }
  23. }