2018-11-29 02:01:19 +00:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.Loaders.Npdm
|
|
|
|
|
{
|
|
|
|
|
class KernelAccessControl
|
|
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
|
public int[] Capabilities { get; private set; }
|
2018-11-29 02:01:19 +00:00
|
|
|
|
|
2018-12-05 00:52:39 +00:00
|
|
|
|
public KernelAccessControl(Stream Stream, int Offset, int Size)
|
2018-11-29 02:01:19 +00:00
|
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
|
Stream.Seek(Offset, SeekOrigin.Begin);
|
2018-11-29 02:01:19 +00:00
|
|
|
|
|
2018-12-05 00:52:39 +00:00
|
|
|
|
Capabilities = new int[Size / 4];
|
2018-11-29 02:01:19 +00:00
|
|
|
|
|
2018-12-05 00:52:39 +00:00
|
|
|
|
BinaryReader Reader = new BinaryReader(Stream);
|
2018-11-29 02:01:19 +00:00
|
|
|
|
|
2018-12-05 00:52:39 +00:00
|
|
|
|
for (int Index = 0; Index < Capabilities.Length; Index++)
|
2018-11-29 02:01:19 +00:00
|
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
|
Capabilities[Index] = Reader.ReadInt32();
|
2018-11-29 02:01:19 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|