Update Module

- 백신 회피를 위한 런처 수정
This commit is contained in:
2023-02-10 17:20:25 +09:00
parent 3a35e53ec0
commit db5a1cff63
4 changed files with 55 additions and 25 deletions

View File

@@ -114,13 +114,19 @@ namespace CommonLibrary
{
using (Stream outputStream = File.OpenWrite(fileName))
{
Stream progressStream = new ProgressStream(outputStream, null,
new BasicProgress<int>(i =>
{
currentBytes += i;
progress.Report(currentBytes / totalBytes);
if (progress != null)
{
progress.Report(currentBytes / totalBytes);
}
}));
inputStream.CopyTo(progressStream);
}
File.SetLastWriteTime(fileName, entry.LastWriteTime.LocalDateTime);
}