Skip to content

Commit

Permalink
fix the bug where deletefiles and hdifffiles are not processed after …
Browse files Browse the repository at this point in the history
…decompressing 7z package #1136
  • Loading branch information
Scighost committed Oct 23, 2024
1 parent 5866c88 commit 52a75bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Starward/Services/Download/InstallGameService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ protected async Task DecompressItemAsync(InstallGameItem item, CancellationToken
using var fs = new FileSliceStream(item.DecompressPackageFiles);
if (item.DecompressPackageFiles[0].Contains(".7z", StringComparison.CurrentCultureIgnoreCase))
{
await Task.Run(() =>
await Task.Run(async () =>
{
using var extra = new ArchiveFile(fs);
double ratio = (double)fs.Length / extra.Entries.Sum(x => (long)x.Size);
Expand All @@ -1321,6 +1321,7 @@ await Task.Run(() =>
};
extra.Extract(item.DecompressPath, true);
_finishBytes += fs.Length - sum;
await ApplyDiffFilesAsync(item.DecompressPath).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false);
}
else
Expand Down

0 comments on commit 52a75bd

Please sign in to comment.