Skip to content

Commit

Permalink
BCK - Fixed minor issue where filesize wouldn't get set properly
Browse files Browse the repository at this point in the history
whoopsies
  • Loading branch information
SuperHackio committed Dec 14, 2021
1 parent ad8e2a1 commit ef3a9ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Hack.io.BCK/BCK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@ private void Write(Stream BCKFile)
AddPadding(BCKFile, 32);

BCKFile.Position = 0x08;
BCKFile.WriteReverse(BitConverter.GetBytes(BCKFile.Length), 0, 4);
BCKFile.WriteReverse(BitConverter.GetBytes((uint)BCKFile.Length), 0, 4);
BCKFile.Position = 0x24;
BCKFile.WriteReverse(BitConverter.GetBytes(BCKFile.Length - Ank1Start), 0, 4);
BCKFile.WriteReverse(BitConverter.GetBytes((uint)(BCKFile.Length - Ank1Start)), 0, 4);
BCKFile.Position = 0x34;
BCKFile.WriteReverse(BitConverter.GetBytes(AnimTableOffset - Ank1Start), 0, 4);
BCKFile.WriteReverse(BitConverter.GetBytes(ScaleTableOffset - Ank1Start), 0, 4);
Expand Down

0 comments on commit ef3a9ad

Please sign in to comment.