Add field to propagate partition scheme on each partition.

This commit is contained in:
2017-07-23 22:54:36 +01:00
parent 332c2901fd
commit 4b9d012346
18 changed files with 488 additions and 376 deletions

View File

@@ -70,12 +70,15 @@ namespace DiscImageChef.PartPlugins
foreach(DECPartition entry in table.pt_part)
{
Partition part = new Partition();
part.Start = entry.pi_blkoff;
part.Offset = (ulong)(entry.pi_blkoff * sector.Length);
part.Size = (ulong)entry.pi_nblocks;
part.Length = (ulong)(entry.pi_nblocks * sector.Length);
part.Sequence = counter;
Partition part = new Partition
{
Start = entry.pi_blkoff,
Offset = (ulong)(entry.pi_blkoff * sector.Length),
Size = (ulong)entry.pi_nblocks,
Length = (ulong)(entry.pi_nblocks * sector.Length),
Sequence = counter,
Scheme = Name
};
if(part.Size > 0)
{
partitions.Add(part);