Skip to content

Commit ab69292

Browse files
committed
Fix alignment padding
1 parent 7c2e2b4 commit ab69292

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/SarcLibrary/Sarc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public unsafe void Write(Stream stream, Endianness? endianness = null, bool lega
107107
SfntWriter.Write(ref writer, sorted.Span);
108108
}
109109

110-
writer.Align(sarcAlignment);
110+
writer.AlignAtEnd(sarcAlignment);
111111

112112
int dataOffset = (int)writer.Position;
113113
foreach ((string _, (uint FileNameHash, ArraySegment<byte> Data, int Alignment) value) in sorted.Span) {

src/SarcLibrary/Writers/SfntWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static unsafe void Write(ref RevrsWriter writer, Span<SarcNodeData> entri
2121
Span<byte> bytes = new(ptr, entry.Name.Length);
2222
writer.Write(bytes);
2323
writer.Write((byte)0x0);
24-
writer.Align(0x4);
24+
writer.AlignAtEnd(0x4);
2525
}
2626
}
2727
}

0 commit comments

Comments
 (0)