add 10gb overhead for free space check

This commit is contained in:
IsWaffle 2023-12-29 15:38:41 -05:00
parent f05e11a6eb
commit a2a0991498
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,6 @@
using System.Linq;
using System.Threading.Tasks;
using Serilog;
using SPTInstaller.Helpers;
using SPTInstaller.Models;
@ -36,8 +37,11 @@ public class FreeSpacePreCheck : PreCheckBase
var availableSize = DriveInfo.GetDrives().FirstOrDefault(d => d.Name.ToLower() == installTargetDirectoryInfo.Root.Name.ToLower())?.AvailableFreeSpace ?? 0;
// add 10Gb overhead to game files for potential patches / release files
eftSourceDirSize += 10000000000;
var availableSpaceMessage = $"Available Space: {DirectorySizeHelper.SizeSuffix(availableSize, 2)}";
var requiredSpaceMessage = $"Space Required for EFT Client: {DirectorySizeHelper.SizeSuffix(eftSourceDirSize, 2)}";
var requiredSpaceMessage = $"Space Required for EFT Client: {DirectorySizeHelper.SizeSuffix(eftSourceDirSize, 2)} including ~10Gb overhead";
if (eftSourceDirSize > availableSize)
{

View File

@ -9,8 +9,8 @@
<PackageIcon>icon.ico</PackageIcon>
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
<Configurations>Debug;Release;TEST</Configurations>
<AssemblyVersion>2.25</AssemblyVersion>
<FileVersion>2.25</FileVersion>
<AssemblyVersion>2.26</AssemblyVersion>
<FileVersion>2.26</FileVersion>
<Company>SPT-AKI</Company>
</PropertyGroup>