blob: 171243799d8d56e3cc94861f5994c56aa2459c70 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
using System.IO;
namespace Ryujinx.HLE.Loaders.Npdm
{
public 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(stream);
for (int index = 0; index < Capabilities.Length; index++)
{
Capabilities[index] = reader.ReadInt32();
}
}
}
}
|