Skip to content

Commit

Permalink
update 2.8.2 upgrade code
Browse files Browse the repository at this point in the history
  • Loading branch information
bluepilledgreat committed Dec 27, 2024
1 parent 6af8c2a commit f096584
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions Bloxstrap/Installer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -565,13 +565,19 @@ public static void HandleUpgrade()

if (Utilities.CompareVersions(existingVer, "2.8.2") == VersionComparison.LessThan)
{
try
{
Directory.Delete(Path.Combine(Paths.Base, "Roblox"), true);
}
catch (Exception ex)
string robloxDirectory = Path.Combine(Paths.Base, "Roblox");

if (Directory.Exists(robloxDirectory))
{
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);
}
}
}

Expand Down

0 comments on commit f096584

Please sign in to comment.