Ryujinx/Ryujinx.HLE/Loaders/Npdm/KernelAccessControl.cs

24 lines
567 B
C#
Raw Normal View History

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