mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Correct detection of 5.25" MD1DD 8spt FAT12 disks.
This commit is contained in:
@@ -250,6 +250,8 @@ namespace DiscImageChef.Filesystems
|
|||||||
fat2_sector_no = 2;
|
fat2_sector_no = 2;
|
||||||
else if(imagePlugin.ImageInfo.sectors == 720 && imagePlugin.ImageInfo.sectorSize == 128)
|
else if(imagePlugin.ImageInfo.sectors == 720 && imagePlugin.ImageInfo.sectorSize == 128)
|
||||||
fat2_sector_no = 5;
|
fat2_sector_no = 5;
|
||||||
|
else if(imagePlugin.ImageInfo.sectors == 640 && imagePlugin.ImageInfo.sectorSize == 512)
|
||||||
|
fat2_sector_no = 2;
|
||||||
break;
|
break;
|
||||||
case 0xFF:
|
case 0xFF:
|
||||||
if(imagePlugin.ImageInfo.sectors == 640 && imagePlugin.ImageInfo.sectorSize == 512)
|
if(imagePlugin.ImageInfo.sectors == 640 && imagePlugin.ImageInfo.sectorSize == 512)
|
||||||
@@ -636,6 +638,21 @@ namespace DiscImageChef.Filesystems
|
|||||||
fakeBPB.hsectors = 0;
|
fakeBPB.hsectors = 0;
|
||||||
fakeBPB.spfat = 4;
|
fakeBPB.spfat = 4;
|
||||||
}
|
}
|
||||||
|
else if(imagePlugin.ImageInfo.sectors == 640 && imagePlugin.ImageInfo.sectorSize == 512)
|
||||||
|
{
|
||||||
|
DicConsole.DebugWriteLine("FAT plugin", "Using hardcoded BPB for 5.25\" DSDD.");
|
||||||
|
fakeBPB.bps = 512;
|
||||||
|
fakeBPB.spc = 2;
|
||||||
|
fakeBPB.rsectors = 1;
|
||||||
|
fakeBPB.fats_no = 2;
|
||||||
|
fakeBPB.root_ent = 112;
|
||||||
|
fakeBPB.sectors = 640;
|
||||||
|
fakeBPB.media = 0xFF;
|
||||||
|
fakeBPB.sptrk = 8;
|
||||||
|
fakeBPB.heads = 2;
|
||||||
|
fakeBPB.hsectors = 0;
|
||||||
|
fakeBPB.spfat = 1;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 0xFF:
|
case 0xFF:
|
||||||
if(imagePlugin.ImageInfo.sectors == 640 && imagePlugin.ImageInfo.sectorSize == 512)
|
if(imagePlugin.ImageInfo.sectors == 640 && imagePlugin.ImageInfo.sectorSize == 512)
|
||||||
|
|||||||
Reference in New Issue
Block a user