General refactor.

This commit is contained in:
2018-06-20 22:22:21 +01:00
parent dc1884f5d8
commit ec8b309670
93 changed files with 850 additions and 1015 deletions

View File

@@ -307,12 +307,10 @@ namespace DiscImageChef.Filesystems
// HPFS
if(16 + partition.Start <= partition.End)
{
uint hpfsMagic1, hpfsMagic2;
byte[] hpfsSbSector =
imagePlugin.ReadSector(16 + partition.Start); // Seek to superblock, on logical sector 16
hpfsMagic1 = BitConverter.ToUInt32(hpfsSbSector, 0x000);
hpfsMagic2 = BitConverter.ToUInt32(hpfsSbSector, 0x004);
uint hpfsMagic1 = BitConverter.ToUInt32(hpfsSbSector, 0x000);
uint hpfsMagic2 = BitConverter.ToUInt32(hpfsSbSector, 0x004);
if(hpfsMagic1 == 0xF995E849 && hpfsMagic2 == 0xFA53E9C5) return false;
}