File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Assets/PatchKit Patcher/Scripts/AppUpdater Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ AppContentSummary latestVersionContentSummary
104104 bool isNewVersionAvailable = installedVersionId < latestVersionId ;
105105
106106 long contentSize = isNewVersionAvailable
107- ? ( latestVersionContentSummary . UncompressedSize != 0 ? latestVersionContentSummary . UncompressedSize : latestVersionContentSummary . Size )
108- : ( installedVersionContentSummary . UncompressedSize != 0 ? installedVersionContentSummary . UncompressedSize : installedVersionContentSummary . Size ) ;
107+ ? latestVersionContentSummary . Files . Sum ( f => f . Size )
108+ : installedVersionContentSummary . Files . Sum ( f => f . Size ) ;
109109
110110 double repairCost = CalculateRepairCost ( installedVersionContentSummary , filesNeedFixing ) ;
111111
You can’t perform that action at this time.
0 commit comments