Skip to content

Commit

Permalink
Fixed broken PACs being created when it had multiple embedded non-roo…
Browse files Browse the repository at this point in the history
…t PACs.
  • Loading branch information
nickworonekin committed Apr 2, 2021
1 parent fd32c59 commit add119a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PuyoPac/HedgeLib/Archives/ForcesArchive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public void Save(string filePath,
while (startIndex != -1)
{
string fileName = $"{shortName}{Extension}.{arcIndex.ToString("000")}";
var startPosition = fileStream.Position;
var startPosition = splitPacStream.Position;

(startIndex, pacWriter, length) = CreatePac(splitCount, startIndex);
(compressedLength, compressedBlocks) = CompressAndWritePac(pacWriter.BaseStream, splitPacStream, compressSize);
Expand Down
2 changes: 1 addition & 1 deletion src/PuyoPac/PuyoPac.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Description>Creates and extracts PAC archives used in Puyo Puyo Tetris 2.</Description>
<Copyright>Copyright © Nick Woronekin 2021</Copyright>
<Version>1.1.0</Version>
<Version>1.1.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit add119a

Please sign in to comment.