Skip to content

Commit

Permalink
(SonicStorybook) Fix Compression
Browse files Browse the repository at this point in the history
So this has been broken ever since I made the swap to AuroraLib, oops.
  • Loading branch information
Knuxfan24 committed Aug 29, 2024
1 parent 971b9fa commit 2c83900
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion KnuxLib/Engines/SonicStorybook/ONE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ public void Save(string filepath)
Console.WriteLine($"Compressing {Data[fileIndex].Name}.");

// Compress this file's data.
CompressedData[fileIndex] = new PRS().Compress(Data[fileIndex].Data).ToArray();
PRS prsCompressor = new() { ExplicitOrder = AuroraLib.Core.Endian.Little };
CompressedData[fileIndex] = prsCompressor.Compress(Data[fileIndex].Data).ToArray();

// Write this file's name.
writer.WriteNullPaddedString(Data[fileIndex].Name, 0x20);
Expand Down

0 comments on commit 2c83900

Please sign in to comment.