mirror of
https://github.com/SabreTools/NDecrypt.git
synced 2026-09-23 07:14:53 +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.
29 lines
673 B
C#
29 lines
673 B
C#
using System.IO;
|
|
|
|
namespace ThreeDS.Headers
|
|
{
|
|
public class CodeSetInfo
|
|
{
|
|
public byte[] Address = new byte[0x04];
|
|
public uint PhysicalRegionSizeInPages;
|
|
public uint SizeInBytes;
|
|
|
|
public static CodeSetInfo Read(BinaryReader reader)
|
|
{
|
|
CodeSetInfo csi = new CodeSetInfo();
|
|
|
|
try
|
|
{
|
|
csi.Address = reader.ReadBytes(4);
|
|
csi.PhysicalRegionSizeInPages = reader.ReadUInt32();
|
|
csi.SizeInBytes = reader.ReadUInt32();
|
|
return csi;
|
|
}
|
|
catch
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|