Move solution and projects to src
This commit is contained in:
23
src/Ryujinx.HLE/Loaders/Npdm/KernelAccessControl.cs
Normal file
23
src/Ryujinx.HLE/Loaders/Npdm/KernelAccessControl.cs
Normal file
@@ -0,0 +1,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 BinaryReader(stream);
|
||||
|
||||
for (int index = 0; index < Capabilities.Length; index++)
|
||||
{
|
||||
Capabilities[index] = reader.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user