aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Kernel/KPort.cs
blob: 598f3a32180223e996d18d022cd01b954de0a023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
namespace Ryujinx.HLE.HOS.Kernel
{
    class KPort : KAutoObject
    {
        public KServerPort ServerPort { get; private set; }
        public KClientPort ClientPort { get; private set; }

        private long NameAddress;
        private bool IsLight;

        public KPort(Horizon System) : base(System)
        {
            ServerPort = new KServerPort(System);
            ClientPort = new KClientPort(System);
        }

        public void Initialize(int MaxSessions, bool IsLight, long NameAddress)
        {
            ServerPort.Initialize(this);
            ClientPort.Initialize(this, MaxSessions);

            this.IsLight     = IsLight;
            this.NameAddress = NameAddress;
        }
    }
}