1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-01 00:32:03 +00:00
Ryujinx/Ryujinx.HLE/Loaders/Npdm/KernelAccessControl.cs
2018-12-01 14:03:56 -06:00

23 lines
567 B
C#

using System.IO;
namespace Ryujinx.HLE.Loaders.Npdm
{
class KernelAccessControl
{
public int[] Capabilities { get; private set; }
public KernelAccessControl(Stream stream, int offset, int size)
{
stream.Seek(offset, SeekOrigin.Begin);
Capabilities = new int[size / 4];
BinaryReader reader = new BinaryReader(stream);
for (int index = 0; index < Capabilities.Length; index++)
{
Capabilities[index] = reader.ReadInt32();
}
}
}
}