REFACTOR: Final cleanup of DiscImageChef.Partitions.

This commit is contained in:
2017-12-24 03:11:33 +00:00
parent 9dda52522c
commit 3f628cd3c9
19 changed files with 1638 additions and 1620 deletions

View File

@@ -66,16 +66,20 @@ namespace DiscImageChef.Partitions
ulong counter = 0;
foreach(Partition part in from entry in table.entries let part = new Partition
foreach(Partition part in from entry in table.entries
let part = new Partition
{
Start = entry.offset,
Offset = (ulong)(entry.offset * sector.Length),
Size = entry.size,
Length = (ulong)(entry.size * sector.Length),
Type = "Rio Karma",
Sequence = counter,
Scheme = Name
}
where entry.type == ENTRY_MAGIC
select part)
{
Start = entry.offset,
Offset = (ulong)(entry.offset * sector.Length),
Size = entry.size,
Length = (ulong)(entry.size * sector.Length),
Type = "Rio Karma",
Sequence = counter,
Scheme = Name
} where entry.type == ENTRY_MAGIC select part) {
partitions.Add(part);
counter++;
}