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

@@ -98,13 +98,16 @@ namespace DiscImageChef.PartPlugins
DicConsole.DebugWriteLine("Human68k plugin", "entry.length = {0}", entry.length);
DicConsole.DebugWriteLine("Human68k plugin", "sectsPerUnit = {0} {1}", sectsPerUnit, imagePlugin.GetSectorSize());
Partition part = new Partition();
part.Start = (entry.stateStart & 0xFFFFFF) * sectsPerUnit;
Partition part = new Partition
{
Start = (entry.stateStart & 0xFFFFFF) * sectsPerUnit,
Length = entry.length * sectsPerUnit,
Type = StringHandlers.CToString(entry.name, Encoding.GetEncoding(932)),
Sequence = counter,
Scheme = Name
};
part.Offset = part.Start * (ulong)sector.Length;
part.Length = entry.length * sectsPerUnit;
part.Size = part.Length * (ulong)sector.Length;
part.Type = StringHandlers.CToString(entry.name, Encoding.GetEncoding(932));
part.Sequence = counter;
if(entry.length > 0)
{
partitions.Add(part);