File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Assets/PatchKit Patcher/Scripts/AppUpdater Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ public class AppRepairer
32
32
33
33
private int _lowestVersionWithContentId ;
34
34
35
+ private const double IncreaseRepairCost = 1.5d ;
36
+
35
37
36
38
public AppRepairer ( AppUpdaterContext context , UpdaterStatus status )
37
39
{
@@ -108,6 +110,9 @@ AppContentSummary latestVersionContentSummary
108
110
: installedVersionContentSummary . Files . Sum ( f => f . Size ) ;
109
111
110
112
double repairCost = CalculateRepairCost ( installedVersionContentSummary , filesNeedFixing ) ;
113
+
114
+ // increasing repair costs that reinstallation will be done for 1/3 of the content size
115
+ repairCost *= IncreaseRepairCost ;
111
116
112
117
113
118
if ( _lowestVersionWithContentId > installedVersionId )
You can’t perform that action at this time.
0 commit comments