1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-10-01 12:30:00 +02:00
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
}
}
}
}