change player & studio sizes to int

This commit is contained in:
bluepilledgreat 2023-10-04 18:07:20 +01:00
parent 6dafc220b3
commit 8f6f6874d1
2 changed files with 5 additions and 5 deletions

View File

@ -214,7 +214,7 @@ namespace Bloxstrap
if (App.IsFirstRun || FreshInstall)
{
Register();
RegisterProgramSize(); // STUDIO TODO
RegisterProgramSize();
}
CheckInstall();
@ -511,10 +511,10 @@ namespace Bloxstrap
using RegistryKey uninstallKey = Registry.CurrentUser.CreateSubKey($"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{App.ProjectName}");
// sum compressed and uncompressed package sizes and convert to kilobytes
long distributionSize = (_versionPackageManifest.Sum(x => x.Size) + _versionPackageManifest.Sum(x => x.PackedSize)) / 1000;
int distributionSize = (_versionPackageManifest.Sum(x => x.Size) + _versionPackageManifest.Sum(x => x.PackedSize)) / 1000;
_distributionSize = distributionSize;
long totalSize = App.State.Prop.PlayerSize + App.State.Prop.StudioSize;
int totalSize = App.State.Prop.PlayerSize + App.State.Prop.StudioSize;
uninstallKey.SetValue("EstimatedSize", totalSize);

View File

@ -9,8 +9,8 @@
public string PlayerVersionGuid { get; set; } = "";
public string StudioVersionGuid { get; set; } = "";
public long PlayerSize { get; set; } = 0;
public long StudioSize { get; set; } = 0;
public int PlayerSize { get; set; } = 0;
public int StudioSize { get; set; } = 0;
public List<string> ModManifest { get; set; } = new();
}