Ryujinx/Ryujinx.HLE/Loaders/Npdm/FsAccessControl.cs

29 lines
1,000 B
C#
Raw Normal View History

using System.IO;
namespace Ryujinx.HLE.Loaders.Npdm
{
2018-12-01 21:38:15 +01:00
internal class FsAccessControl
{
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-12-01 21:01:59 +01:00
public FsAccessControl(Stream stream, int offset, int size)
{
2018-12-01 21:01:59 +01:00
stream.Seek(offset, SeekOrigin.Begin);
2018-12-01 21:01:59 +01:00
BinaryReader reader = new BinaryReader(stream);
2018-12-01 21:01:59 +01:00
Version = reader.ReadInt32();
PermissionsBitmask = reader.ReadUInt64();
Unknown1 = reader.ReadInt32();
Unknown2 = reader.ReadInt32();
Unknown3 = reader.ReadInt32();
Unknown4 = reader.ReadInt32();
}
}
}