Skip to content

Commit

Permalink
Fixed reading files for packing.
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriySalnikov committed Mar 13, 2024
1 parent 423a55f commit 5f0b0c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/GodotPCKExplorer/PCKPacker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public override void CalculateMD5()

public override IEnumerable<ReadOnlyMemory<byte>> ReadMemoryBlocks()
{
using var stream = File.Open(OriginalPath, FileMode.OpenOrCreate, FileAccess.ReadWrite);
using var stream = File.Open(OriginalPath, FileMode.Open, FileAccess.Read, FileShare.Read);
foreach (var block in PCKUtils.ReadStreamAsMemoryBlocks(stream))
{
yield return block;
Expand Down

0 comments on commit 5f0b0c7

Please sign in to comment.