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:
@@ -77,10 +77,14 @@ namespace DiscImageChef.PartPlugins
|
||||
PluginUUID = new Guid("E3F6FB91-D358-4F22-A550-81E92D50EB78");
|
||||
}
|
||||
|
||||
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>();
|
||||
|
||||
// Xbox partitions always start on 0
|
||||
if(sectorOffset != 0)
|
||||
return false;
|
||||
|
||||
byte[] sector = imagePlugin.ReadSector(0);
|
||||
if(sector.Length < 512)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user