Recognize .toast files properly. Fixes #663

(cherry picked from commit 88aeda7240)
This commit is contained in:
2021-09-19 21:19:39 +01:00
parent 0847dafd7d
commit c6fa123555

View File

@@ -120,6 +120,18 @@ namespace Aaru.DiscImages
case ".iso" when imageFilter.GetDataForkLength() % 2048 == 0:
_imageInfo.SectorSize = 2048;
break;
case ".toast" when imageFilter.GetDataForkLength() % 2048 == 0:
_imageInfo.SectorSize = 2048;
break;
case ".toast" when imageFilter.GetDataForkLength() % 2336 == 0:
_imageInfo.SectorSize = 2336;
break;
case ".toast" when imageFilter.GetDataForkLength() % 2352 == 0:
_imageInfo.SectorSize = 2352;
break;
case ".d81" when imageFilter.GetDataForkLength() == 819200:
_imageInfo.SectorSize = 256;