Files
NDecrypt/3DSDecrypt/Headers/PartitionTableEntry.cs
Matt Nadareski 4d9001f74c Mostly working implementation
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.
2019-04-06 21:58:08 -07:00

32 lines
690 B
C#

using System.IO;
namespace ThreeDS.Headers
{
public class PartitionTableEntry
{
public uint Offset { get; set; }
public uint Length { get; set; }
public static PartitionTableEntry Read(BinaryReader reader)
{
PartitionTableEntry entry = new PartitionTableEntry();
try
{
entry.Offset = reader.ReadUInt32();
entry.Length = reader.ReadUInt32();
return entry;
}
catch
{
return null;
}
}
public bool IsValid()
{
return Offset != 0 && Length != 0;
}
}
}