2018-08-16 23:47:36 +00:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.Loaders.Npdm
|
|
|
|
|
{
|
|
|
|
|
class FsAccessControl
|
|
|
|
|
{
|
2018-12-04 20:23:37 +00:00
|
|
|
|
public int Version { get; }
|
|
|
|
|
public ulong PermissionsBitmask { get; }
|
|
|
|
|
public int Unknown1 { get; }
|
|
|
|
|
public int Unknown2 { get; }
|
|
|
|
|
public int Unknown3 { get; }
|
|
|
|
|
public int Unknown4 { get; }
|
2018-08-16 23:47:36 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
public FsAccessControl(Stream stream, int offset, int size)
|
2018-08-16 23:47:36 +00:00
|
|
|
|
{
|
2018-12-04 20:23:37 +00:00
|
|
|
|
stream.Seek(offset, SeekOrigin.Begin);
|
2018-08-16 23:47:36 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
BinaryReader reader = new BinaryReader(stream);
|
2018-08-16 23:47:36 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
Version = reader.ReadInt32();
|
|
|
|
|
PermissionsBitmask = reader.ReadUInt64();
|
|
|
|
|
Unknown1 = reader.ReadInt32();
|
|
|
|
|
Unknown2 = reader.ReadInt32();
|
|
|
|
|
Unknown3 = reader.ReadInt32();
|
|
|
|
|
Unknown4 = reader.ReadInt32();
|
2018-08-16 23:47:36 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|