mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 16:41:36 -07:00
update 2.8.2 upgrade code
This commit is contained in:
parent
6af8c2a450
commit
f0965844ec
@ -565,13 +565,19 @@ namespace Bloxstrap
|
||||
|
||||
if (Utilities.CompareVersions(existingVer, "2.8.2") == VersionComparison.LessThan)
|
||||
{
|
||||
try
|
||||
string robloxDirectory = Path.Combine(Paths.Base, "Roblox");
|
||||
|
||||
if (Directory.Exists(robloxDirectory))
|
||||
{
|
||||
Directory.Delete(Path.Combine(Paths.Base, "Roblox"), true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
App.Logger.WriteException(LOG_IDENT, ex);
|
||||
try
|
||||
{
|
||||
Directory.Delete(robloxDirectory, true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
App.Logger.WriteLine(LOG_IDENT, "Failed to delete the Roblox directory");
|
||||
App.Logger.WriteException(LOG_IDENT, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user