mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Use generic method to search for partitions, supporting
partitions inside partitions. At the same time SGI DVH is disabled because it is not working correctly. Fixes #60
This commit is contained in:
@@ -49,12 +49,12 @@ namespace DiscImageChef.PartPlugins
|
||||
PluginUUID = new Guid("27333401-C7C2-447D-961C-22AD0641A09A\n");
|
||||
}
|
||||
|
||||
public override bool GetInformation(ImagePlugin imagePlugin, out List<Partition> partitions)
|
||||
public override bool GetInformation(ImagePlugin imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
partitions = new List<Partition>();
|
||||
|
||||
byte[] bootSector = imagePlugin.ReadSector(0);
|
||||
byte[] sector = imagePlugin.ReadSector(1);
|
||||
byte[] bootSector = imagePlugin.ReadSector(sectorOffset);
|
||||
byte[] sector = imagePlugin.ReadSector(1 + sectorOffset);
|
||||
if(sector.Length < 512)
|
||||
return false;
|
||||
if(bootSector[0x1FE] != 0x55 || bootSector[0x1FF] != 0xAA)
|
||||
|
||||
Reference in New Issue
Block a user