mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Fix first-time installation
This commit is contained in:
parent
8cd6690a33
commit
e6bfac46fe
@ -704,6 +704,10 @@ namespace Bloxstrap
|
|||||||
|
|
||||||
SetStatus(FreshInstall ? "Installing Roblox..." : "Upgrading Roblox...");
|
SetStatus(FreshInstall ? "Installing Roblox..." : "Upgrading Roblox...");
|
||||||
|
|
||||||
|
Directory.CreateDirectory(Directories.Base);
|
||||||
|
Directory.CreateDirectory(Directories.Downloads);
|
||||||
|
Directory.CreateDirectory(Directories.Versions);
|
||||||
|
|
||||||
// package manifest states packed size and uncompressed size in exact bytes
|
// package manifest states packed size and uncompressed size in exact bytes
|
||||||
// packed size only matters if we don't already have the package cached on disk
|
// packed size only matters if we don't already have the package cached on disk
|
||||||
string[] cachedPackages = Directory.GetFiles(Directories.Downloads);
|
string[] cachedPackages = Directory.GetFiles(Directories.Downloads);
|
||||||
@ -716,8 +720,6 @@ namespace Bloxstrap
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Directory.CreateDirectory(Directories.Base);
|
|
||||||
|
|
||||||
if (Dialog is not null)
|
if (Dialog is not null)
|
||||||
{
|
{
|
||||||
Dialog.CancelEnabled = true;
|
Dialog.CancelEnabled = true;
|
||||||
@ -727,9 +729,6 @@ namespace Bloxstrap
|
|||||||
// compute total bytes to download
|
// compute total bytes to download
|
||||||
_progressIncrement = (double)100 / _versionPackageManifest.Sum(package => package.PackedSize);
|
_progressIncrement = (double)100 / _versionPackageManifest.Sum(package => package.PackedSize);
|
||||||
|
|
||||||
Directory.CreateDirectory(Directories.Downloads);
|
|
||||||
Directory.CreateDirectory(Directories.Versions);
|
|
||||||
|
|
||||||
foreach (Package package in _versionPackageManifest)
|
foreach (Package package in _versionPackageManifest)
|
||||||
{
|
{
|
||||||
if (_cancelFired)
|
if (_cancelFired)
|
||||||
|
Loading…
Reference in New Issue
Block a user