mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
4e430760b4
* Implement NPDM files parser (Currently not used in Ryujinx) * Add credits * Add Swap32 * Update Npdm.cs * Update ACI0.cs * Update ACID.cs * Update Npdm.cs * Update EndianSwap.cs * Update ACI0.cs * Update ACID.cs * Update KernelAccessControl.cs * Update NpdmInfo.cs * Update ServiceAccessControl.cs * Update NpdmInfo.cs
28 lines
891 B
C#
28 lines
891 B
C#
using System.IO;
|
|
|
|
namespace Ryujinx.HLE.Loaders.Npdm
|
|
{
|
|
public class FSAccessControl
|
|
{
|
|
public int Version;
|
|
public ulong PermissionsBitmask;
|
|
public int Unknown1;
|
|
public int Unknown2;
|
|
public int Unknown3;
|
|
public int Unknown4;
|
|
|
|
public FSAccessControl(Stream FSAccessHeaderStream, int Offset, int Size)
|
|
{
|
|
FSAccessHeaderStream.Seek(Offset, SeekOrigin.Begin);
|
|
|
|
BinaryReader Reader = new BinaryReader(FSAccessHeaderStream);
|
|
|
|
Version = Reader.ReadInt32();
|
|
PermissionsBitmask = Reader.ReadUInt64();
|
|
Unknown1 = Reader.ReadInt32();
|
|
Unknown2 = Reader.ReadInt32();
|
|
Unknown3 = Reader.ReadInt32();
|
|
Unknown4 = Reader.ReadInt32();
|
|
}
|
|
}
|
|
}
|