aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Kernel/KPort.cs
blob: 7e5ef394065e013a99fc4f8d11188e7523664745 (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; }
        public KClientPort ClientPort { get; }

        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);

            _isLight     = isLight;
            _nameAddress = nameAddress;
        }
    }
}