From 59bcf6fd27b9a525f7c013bace61791db70fa783 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Sun, 27 Oct 2024 17:15:41 +0000 Subject: [PATCH] Fix edge case regarding package restoration Exception is thrown if the Downloads folder does not exist when trying to restore the original version of a modded file Addresses #3308 --- Bloxstrap/Bootstrapper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 6b73caa..232081f 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -1053,6 +1053,8 @@ namespace Bloxstrap if (_cancelTokenSource.IsCancellationRequested) return; + Directory.CreateDirectory(Paths.Downloads); + string packageUrl = Deployment.GetLocation($"/{_latestVersionGuid}-{package.Name}"); string robloxPackageLocation = Path.Combine(Paths.LocalAppData, "Roblox", "Downloads", package.Signature);