mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
🎨🎨🎨 Removed methods in images that only returned what's already in the ImageInfo structure.
This commit is contained in:
@@ -73,11 +73,11 @@ namespace DiscImageChef.Filesystems
|
||||
|
||||
public override bool Identify(ImagePlugin imagePlugin, Partition partition)
|
||||
{
|
||||
ulong hdrSector = HEADER_POS / imagePlugin.GetSectorSize();
|
||||
ulong hdrSector = HEADER_POS / imagePlugin.ImageInfo.SectorSize;
|
||||
|
||||
FossilHeader hdr;
|
||||
|
||||
if(partition.Start + hdrSector > imagePlugin.GetSectors()) return false;
|
||||
if(partition.Start + hdrSector > imagePlugin.ImageInfo.Sectors) return false;
|
||||
|
||||
byte[] sector = imagePlugin.ReadSector(partition.Start + hdrSector);
|
||||
hdr = BigEndianMarshal.ByteArrayToStructureBigEndian<FossilHeader>(sector);
|
||||
@@ -91,9 +91,9 @@ namespace DiscImageChef.Filesystems
|
||||
public override void GetInformation(ImagePlugin imagePlugin, Partition partition, out string information)
|
||||
{
|
||||
information = "";
|
||||
if(imagePlugin.GetSectorSize() < 512) return;
|
||||
if(imagePlugin.ImageInfo.SectorSize < 512) return;
|
||||
|
||||
ulong hdrSector = HEADER_POS / imagePlugin.GetSectorSize();
|
||||
ulong hdrSector = HEADER_POS / imagePlugin.ImageInfo.SectorSize;
|
||||
|
||||
FossilHeader hdr;
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace DiscImageChef.Filesystems
|
||||
sb.AppendFormat("Data starts at block {0}", hdr.data).AppendLine();
|
||||
sb.AppendFormat("Volume has {0} blocks", hdr.end).AppendLine();
|
||||
|
||||
ulong sbLocation = hdr.super * (hdr.blockSize / imagePlugin.GetSectorSize()) + partition.Start;
|
||||
ulong sbLocation = hdr.super * (hdr.blockSize / imagePlugin.ImageInfo.SectorSize) + partition.Start;
|
||||
|
||||
XmlFsType = new FileSystemType
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user