mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add field to propagate partition scheme on each partition.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user