General code style and feature fixes.

This commit is contained in:
2022-11-15 01:35:06 +00:00
parent 47965f0584
commit bd3fe7bd4e
94 changed files with 460 additions and 478 deletions

View File

@@ -86,7 +86,7 @@ public sealed partial class Cdrdao
string line = _tocStream.ReadLine();
Match dm = dr.Match(line ?? "");
Match cm = cr.Match(line);
Match cm = cr.Match(line ?? "");
// Skip comments at start of file
if(cm.Success)

View File

@@ -1373,11 +1373,10 @@ public sealed partial class Cdrdao
_imageStream = aaruTrack.Trackfile.Datafilter.GetDataForkStream();
var br = new BinaryReader(_imageStream);
br.BaseStream.
Seek((long)aaruTrack.Trackfile.Offset + (long)(sectorAddress * (sectorOffset + sectorSize + sectorSkip)),
SeekOrigin.Begin);
br.BaseStream.Seek((long)aaruTrack.Trackfile.Offset + (long)(sectorAddress * (sectorSize + sectorSkip)),
SeekOrigin.Begin);
if(sectorOffset == 0 &&
if(
sectorSkip == 0)
buffer = br.ReadBytes((int)(sectorSize * length));
else