From 475a9ef3bfc8e55e7c00a9f972d5ab234a82295a Mon Sep 17 00:00:00 2001 From: pizzaboxer <41478239+pizzaboxer@users.noreply.github.com> Date: Tue, 14 Feb 2023 23:32:31 +0000 Subject: [PATCH] Fix bug with rbxfpsunlocker cleanup --- Bloxstrap/Helpers/Integrations/RbxFpsUnlocker.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Bloxstrap/Helpers/Integrations/RbxFpsUnlocker.cs b/Bloxstrap/Helpers/Integrations/RbxFpsUnlocker.cs index d61eb32..6803c78 100644 --- a/Bloxstrap/Helpers/Integrations/RbxFpsUnlocker.cs +++ b/Bloxstrap/Helpers/Integrations/RbxFpsUnlocker.cs @@ -68,7 +68,10 @@ namespace Bloxstrap.Helpers.Integrations if (Directory.Exists(folderLocation)) { CheckIfRunning(); - Directory.Delete(folderLocation, true); + + DirectoryInfo directory = new(folderLocation); + directory.Attributes &= ~FileAttributes.ReadOnly; + directory.Delete(true); } return;