[Refactor] General reformat and clean-up.

This commit is contained in:
2025-11-24 20:12:10 +00:00
parent 8331fba1e4
commit a58f2e60e5
415 changed files with 4920 additions and 4829 deletions

View File

@@ -35,7 +35,6 @@
// ****************************************************************************/
using System;
using System.Linq;
using Aaru.Decoders.DVD;
using Aaru.Devices;
using Aaru.Logging;
@@ -378,10 +377,10 @@ public sealed class Dump(Device dev)
buffer = [];
senseBuffer = dev.SenseBuffer;
bool sense = false;
byte[] challenge = new byte[CHALLENGE_SIZE];
byte[] key1 = new byte[KEY_SIZE];
byte variant = 0;
var sense = false;
var challenge = new byte[CHALLENGE_SIZE];
var key1 = new byte[KEY_SIZE];
byte variant = 0;
for(byte i = 0; i < 4; i++)
{

View File

@@ -136,8 +136,9 @@ public class Mpeg
public static bool ContainsMpegPackets(byte[] sectorData, uint blocks = 1, uint blockSize = 2048)
{
for(uint i = 0; i < blocks; i++)
if(IsMpegPacket(sectorData.Skip((int)(i * blockSize))))
return true;
{
if(IsMpegPacket(sectorData.Skip((int)(i * blockSize)))) return true;
}
return false;
}