🎨🎨🎨 Removed methods in images that only returned what's already in the ImageInfo structure.

This commit is contained in:
2017-12-26 02:51:10 +00:00
parent 03a4e286cc
commit a002253fa4
135 changed files with 2111 additions and 8526 deletions

View File

@@ -65,8 +65,8 @@ namespace DiscImageChef.Partitions
// RISC OS always checks for the partition on 0. Afaik no emulator chains it.
if(sectorOffset != 0) return false;
if(imagePlugin.GetSectorSize() > ADFS_SB_POS) sbSector = 0;
else sbSector = ADFS_SB_POS / imagePlugin.GetSectorSize();
if(imagePlugin.ImageInfo.SectorSize > ADFS_SB_POS) sbSector = 0;
else sbSector = ADFS_SB_POS / imagePlugin.ImageInfo.SectorSize;
byte[] sector = imagePlugin.ReadSector(sbSector);
@@ -84,7 +84,7 @@ namespace DiscImageChef.Partitions
int secCyl = bootBlock.discRecord.spt * heads;
int mapSector = bootBlock.startCylinder * secCyl;
if((ulong)mapSector >= imagePlugin.GetSectors()) return false;
if((ulong)mapSector >= imagePlugin.ImageInfo.Sectors) return false;
byte[] map = imagePlugin.ReadSector((ulong)mapSector);