mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Reverse engineered S-Records, use them. They are a must for
V2.
This commit is contained in:
@@ -204,6 +204,21 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
|
||||
int count = 0;
|
||||
|
||||
if(fileId == FILEID_SRECORD)
|
||||
{
|
||||
if(!tags)
|
||||
{
|
||||
buf = device.ReadSectors(mddf.mddf_block + volumePrefix + mddf.srec_ptr, mddf.srec_len);
|
||||
systemFileCache.Add(fileId, buf);
|
||||
return Errno.NoError;
|
||||
}
|
||||
else
|
||||
{
|
||||
buf = device.ReadSectorsTag(mddf.mddf_block + volumePrefix + mddf.srec_ptr, mddf.srec_len, SectorTagType.AppleSectorTag);
|
||||
return Errno.NoError;
|
||||
}
|
||||
}
|
||||
|
||||
Tag sysTag;
|
||||
|
||||
// Should be enough to check 100 sectors?
|
||||
@@ -353,7 +368,7 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
stat.DeviceNo = 0;
|
||||
int len;
|
||||
if(!fileSizeCache.TryGetValue(fileId, out len))
|
||||
stat.Length = file.length;
|
||||
stat.Length = srecords[fileId].filesize;
|
||||
else
|
||||
stat.Length = len;
|
||||
stat.BlockSize = mddf.datasize;
|
||||
|
||||
Reference in New Issue
Block a user