mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
General code cleanup and style refactor.
This commit is contained in:
@@ -30,8 +30,6 @@
|
||||
// Copyright © 2011-2022 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
namespace Aaru.Core.Devices.Dumping;
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Aaru.CommonTypes.Enums;
|
||||
@@ -42,6 +40,8 @@ using Aaru.Core.Logging;
|
||||
using Aaru.Decoders.CD;
|
||||
using Aaru.Devices;
|
||||
|
||||
namespace Aaru.Core.Devices.Dumping;
|
||||
|
||||
partial class Dump
|
||||
{
|
||||
void HandleCdrRunOutSectors(ulong blocks, MmcSubchannel desiredSubchannel, ExtentsULong extents,
|
||||
@@ -63,10 +63,11 @@ partial class Dump
|
||||
if(runOutSectors.Count == 0)
|
||||
return;
|
||||
|
||||
_dumpLog.WriteLine($"{runOutSectors.Count} sectors at the end of the disc are unreadable. This is normal in CD-R(W) discs as these sectors are created by burning software as part of the recording process. Empty ones will be generated and stored in the image.");
|
||||
_dumpLog.WriteLine($"{runOutSectors.Count
|
||||
} sectors at the end of the disc are unreadable. This is normal in CD-R(W) discs as these sectors are created by burning software as part of the recording process. Empty ones will be generated and stored in the image.");
|
||||
|
||||
UpdateStatus?.
|
||||
Invoke($"{runOutSectors.Count} sectors at the end of the disc are unreadable. This is normal in CD-R(W) discs as these sectors are created by burning software as part of the recording process. Empty ones will be generated and stored in the image.");
|
||||
UpdateStatus?.Invoke($"{runOutSectors.Count
|
||||
} sectors at the end of the disc are unreadable. This is normal in CD-R(W) discs as these sectors are created by burning software as part of the recording process. Empty ones will be generated and stored in the image.");
|
||||
|
||||
foreach(ulong s in runOutSectors)
|
||||
{
|
||||
@@ -75,7 +76,7 @@ partial class Dump
|
||||
if(track is null)
|
||||
continue;
|
||||
|
||||
var sector = new byte[2352];
|
||||
byte[] sector = new byte[2352];
|
||||
|
||||
switch(track.Type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user