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
650 B
C#
29 lines
650 B
C#
using System.IO;
|
|
|
|
namespace ThreeDS.Headers
|
|
{
|
|
public class SystemInfo
|
|
{
|
|
public ulong SaveDataSize;
|
|
public byte[] JumpID = new byte[8];
|
|
public byte[] Reserved = new byte[0x30];
|
|
|
|
public static SystemInfo Read(BinaryReader reader)
|
|
{
|
|
SystemInfo si = new SystemInfo();
|
|
|
|
try
|
|
{
|
|
si.SaveDataSize = reader.ReadUInt64();
|
|
si.JumpID = reader.ReadBytes(8);
|
|
si.Reserved = reader.ReadBytes(0x30);
|
|
return si;
|
|
}
|
|
catch
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|