diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 3982fd9..b543958 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -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); diff --git a/Bloxstrap/Models/State.cs b/Bloxstrap/Models/State.cs index 4d758c0..5c22be6 100644 --- a/Bloxstrap/Models/State.cs +++ b/Bloxstrap/Models/State.cs @@ -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 ModManifest { get; set; } = new(); }