From a93c727ba220a18fbce9ccf0c935a1fef8d35f5a Mon Sep 17 00:00:00 2001 From: Deterous <138427222+Deterous@users.noreply.github.com> Date: Tue, 5 Mar 2024 12:11:34 +0900 Subject: [PATCH] Fix spacing --- IRDKit/Program.cs | 2 +- LibIRD/IRD.cs | 6 +++--- LibIRD/ReIRD.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/IRDKit/Program.cs b/IRDKit/Program.cs index 8a44100..c5ddafc 100644 --- a/IRDKit/Program.cs +++ b/IRDKit/Program.cs @@ -732,7 +732,7 @@ namespace IRDKit if (missingOffsets1.Count > 0) printText.AppendLine($"File Offsets not Present in {irdPath1}: {string.Join(", ", missingOffsets1)}"); if (missingOffsets2.Count > 0) - printText.AppendLine($"File Offsets not Present in {irdPath2}: {string.Join(", ", missingOffsets2)}"); + printText.AppendLine($"File Offsets not Present in {irdPath2}: {string.Join(", ", missingOffsets2)}"); // Print any extra config data difference if (IRD1.ExtraConfig != IRD2.ExtraConfig) diff --git a/LibIRD/IRD.cs b/LibIRD/IRD.cs index 5c1aa52..aaf73a6 100644 --- a/LibIRD/IRD.cs +++ b/LibIRD/IRD.cs @@ -1042,7 +1042,7 @@ namespace LibIRD // Initialise MD5 region hashes List regions = []; MD5[] regionMD5 = new MD5[RegionCount]; - for (int i = 0; i < RegionCount; i++) + for (int i = 0; i < RegionCount; i++) { regions.Add(i); regionMD5[i] = MD5.Create(); @@ -1191,7 +1191,7 @@ namespace LibIRD { // Skip hashing file extent if it has not yet started or already ended if (FileExtents[i][j].Offset > currentSector + bufSectors - || SectorSize* FileExtents[i][j].Offset + FileExtents[i][j].Count < SectorSize * currentSector) + || SectorSize * FileExtents[i][j].Offset + FileExtents[i][j].Count < SectorSize * currentSector) continue; // Determine first file byte location in buffer int startByte = FileExtents[i][j].Offset > currentSector ? (int)(SectorSize * (FileExtents[i][j].Offset - currentSector)) : 0; @@ -1219,7 +1219,7 @@ namespace LibIRD files.RemoveAll(item => filesEnded.Contains(item)); currentSector += bufSectors; - } + } } #endregion diff --git a/LibIRD/ReIRD.cs b/LibIRD/ReIRD.cs index af279ae..27d5829 100644 --- a/LibIRD/ReIRD.cs +++ b/LibIRD/ReIRD.cs @@ -183,7 +183,7 @@ namespace LibIRD l0es[0], l0es[1], l0es[2], l0es[3], // 32 bytes of zeros 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Initial portion of PIC again, for 2nd layer // ["DI"] [v1] [11unit][DI num] 0x44, 0x49, 0x01, 0x11, 0x00, 0x01, 0x20, 0x00,