2018-08-17 00:47:36 +01:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.Loaders.Npdm
|
|
|
|
|
{
|
|
|
|
|
class FsAccessControl
|
|
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
|
public int Version { get; private set; }
|
|
|
|
|
public ulong PermissionsBitmask { get; private set; }
|
|
|
|
|
public int Unknown1 { get; private set; }
|
|
|
|
|
public int Unknown2 { get; private set; }
|
|
|
|
|
public int Unknown3 { get; private set; }
|
|
|
|
|
public int Unknown4 { get; private set; }
|
2018-08-17 00:47:36 +01:00
|
|
|
|
|
2018-12-05 00:52:39 +00:00
|
|
|
|
public FsAccessControl(Stream Stream, int Offset, int Size)
|
2018-08-17 00:47:36 +01:00
|
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
|
Stream.Seek(Offset, SeekOrigin.Begin);
|
2018-08-17 00:47:36 +01:00
|
|
|
|
|
2018-12-05 00:52:39 +00:00
|
|
|
|
BinaryReader Reader = new BinaryReader(Stream);
|
2018-08-17 00:47:36 +01:00
|
|
|
|
|
2018-12-05 00:52:39 +00:00
|
|
|
|
Version = Reader.ReadInt32();
|
|
|
|
|
PermissionsBitmask = Reader.ReadUInt64();
|
|
|
|
|
Unknown1 = Reader.ReadInt32();
|
|
|
|
|
Unknown2 = Reader.ReadInt32();
|
|
|
|
|
Unknown3 = Reader.ReadInt32();
|
|
|
|
|
Unknown4 = Reader.ReadInt32();
|
2018-08-17 00:47:36 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|