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

24 lines
567 B
C#
Raw Normal View History

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