Skip to content

Commit a66497f

Browse files
Szczyrkwitcher112
andauthored
Hotfix/v3.17.12.1/ Reparing a crash when patching (#192)
* Reparing a crash when patching * Update CHANGELOG.md Co-authored-by: Jakub Szczyrk <Jakub Szczyrk> Co-authored-by: Tomasz Jaworski <tomasz.jaworski98@gmail.com>
1 parent 52fdd8d commit a66497f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Assets/PatchKit Patcher/Scripts/AppUpdater/Commands/InstallDiffCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,8 @@ private void ProcessModifiedFiles(string packageDirPath, string suffix, Temporar
533533

534534
private long GetTotalSizeModifiedFiles()
535535
{
536-
IEnumerable<string> modifiedFiles = _diffSummary.ModifiedFiles.Where(f => !_diffSummary.UnchangedFiles.Contains(f));
536+
var unchangedFiles = new HashSet<string>(_diffSummary.UnchangedFiles);
537+
var modifiedFiles = new HashSet<string>(_diffSummary.ModifiedFiles).Where(f => !unchangedFiles.Contains(f));
537538
return _contentSummary.Files.Where(f => modifiedFiles.Contains(f.Path)).Sum(f => f.Size);
538539
}
539540

Assets/PatchKit Patcher/Scripts/Version.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public static class Version
55
public const int Major = 3;
66
public const int Minor = 17;
77
public const int Patch = 12;
8-
public const int Hotfix = 0;
8+
public const int Hotfix = 1;
99

1010
public static string Value
1111
{

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [3.17.12.1]
8+
### Fixed
9+
- Crash during patching operation
10+
711
## [3.17.12.0]
812
### Fixed
913
- Displaying the progress bar for patching files for large files

0 commit comments

Comments
 (0)