mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Convert Rom size field to long?
This commit is contained in:
@@ -478,7 +478,7 @@ namespace SabreTools.Library.FileTypes
|
||||
.Concat(Utilities.StringToByteArray(rom.CRC)) // CRC
|
||||
.ToArray();
|
||||
sw.Write(data);
|
||||
sw.Write((ulong)rom.Size); // Long size (Unsigned, Mirrored)
|
||||
sw.Write((ulong)(rom.Size ?? 0)); // Long size (Unsigned, Mirrored)
|
||||
|
||||
// Now create a deflatestream from the input file
|
||||
ZlibBaseStream ds = new ZlibBaseStream(outputStream, CompressionMode.Compress, CompressionLevel.BestCompression, ZlibStreamFlavor.DEFLATE, true);
|
||||
@@ -496,7 +496,7 @@ namespace SabreTools.Library.FileTypes
|
||||
|
||||
// Now write the standard footer
|
||||
sw.Write(Utilities.StringToByteArray(rom.CRC).Reverse().ToArray());
|
||||
sw.Write((uint)rom.Size);
|
||||
sw.Write((uint)(rom.Size ?? 0));
|
||||
|
||||
// Dispose of everything
|
||||
sw.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user