diff --git a/src/Starward/Services/Download/InstallGameService.cs b/src/Starward/Services/Download/InstallGameService.cs index ff8b37eee..187e3a2dd 100644 --- a/src/Starward/Services/Download/InstallGameService.cs +++ b/src/Starward/Services/Download/InstallGameService.cs @@ -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); @@ -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