mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
* DiscImageChef.DiscImages/NDIF.cs:
Corrected sector calculation. Added support for multiple block chunk resources. * DiscImageChef.DiscImages/UDIF.cs: Corrected sector calculation.
This commit is contained in:
@@ -405,6 +405,7 @@ namespace DiscImageChef.DiscImages
|
||||
ImageInfo.imageApplication = "DiskCopy";
|
||||
DicConsole.DebugWriteLine("UDIF plugin", "Image application = {0} version {1}", ImageInfo.imageApplication, ImageInfo.imageApplicationVersion);
|
||||
|
||||
ImageInfo.sectors = 0;
|
||||
if(!fakeBlockChunks)
|
||||
{
|
||||
if(blkxList.Count == 0)
|
||||
@@ -452,10 +453,13 @@ namespace DiscImageChef.DiscImages
|
||||
DicConsole.DebugWriteLine("UDIF plugin", "bHdr.chunk[{0}].length = {1}", i, bChnk.length);
|
||||
|
||||
if(bChnk.type == ChunkType_End)
|
||||
{
|
||||
ImageInfo.sectors = bChnk.sector;
|
||||
break;
|
||||
}
|
||||
|
||||
ImageInfo.sectors += bChnk.sectors;
|
||||
|
||||
// Chunk offset is relative
|
||||
bChnk.sector += bHdr.sectorStart;
|
||||
bChnk.offset += bHdr.dataOffset;
|
||||
|
||||
// TODO: Handle comments
|
||||
if(bChnk.type == ChunkType_Commnt)
|
||||
|
||||
Reference in New Issue
Block a user