mirror of
https://github.com/SabreTools/NDecrypt.git
synced 2026-09-22 23:05:08 +00:00
It's very strange but there are some files that don't decrypt/re-encrypt properly at this point. It could be a key issue, but it's unknown for now.
27 lines
594 B
C#
27 lines
594 B
C#
using System.IO;
|
|
|
|
namespace ThreeDS.Headers
|
|
{
|
|
public class ARM9AccessControl
|
|
{
|
|
public byte[] Descriptors = new byte[15];
|
|
public byte DescriptorVersion;
|
|
|
|
public static ARM9AccessControl Read(BinaryReader reader)
|
|
{
|
|
ARM9AccessControl ac = new ARM9AccessControl();
|
|
|
|
try
|
|
{
|
|
ac.Descriptors = reader.ReadBytes(15);
|
|
ac.DescriptorVersion = reader.ReadByte();
|
|
return ac;
|
|
}
|
|
catch
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|