mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 16:41:36 -07:00
change player & studio sizes to int
This commit is contained in:
parent
6dafc220b3
commit
8f6f6874d1
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user