From c37b3953cdd73e84b39fc6d0c293014c191f9c4e Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 28 Apr 2019 15:44:20 +0100 Subject: [PATCH] Fix Human68k BPB calculation. --- DiscImageChef.Filesystems/FAT/BPB.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DiscImageChef.Filesystems/FAT/BPB.cs b/DiscImageChef.Filesystems/FAT/BPB.cs index ca5663ae6..f4600a5fd 100644 --- a/DiscImageChef.Filesystems/FAT/BPB.cs +++ b/DiscImageChef.Filesystems/FAT/BPB.cs @@ -75,7 +75,7 @@ namespace DiscImageChef.Filesystems.FAT bpbSector[17] >= 0x20; // Check correct branch for Human68k - bool humanBranchCorrect = bpbSector[0] == 0x60 && bpbSector[1] >= 0x20 && bpbSector[1] < 0xFE; + bool humanBranchCorrect = bpbSector[0] == 0x60 && bpbSector[1] >= 0x1C && bpbSector[1] < 0xFE; DicConsole.DebugWriteLine("FAT plugin", "humanClustersCorrect = {0}", humanClustersCorrect); DicConsole.DebugWriteLine("FAT plugin", "humanOemCorrect = {0}", humanOemCorrect); @@ -98,6 +98,7 @@ namespace DiscImageChef.Filesystems.FAT fakeBpb.boot_code = humanBpb.boot_code; fakeBpb.sectors = humanBpb.clusters; fakeBpb.big_sectors = humanBpb.big_clusters; + fakeBpb.rsectors = 1; return BpbKind.Human; }