diff --git a/Bloxstrap/Helpers/Integrations/RbxFpsUnlocker.cs b/Bloxstrap/Helpers/Integrations/RbxFpsUnlocker.cs index ae49afd..504614d 100644 --- a/Bloxstrap/Helpers/Integrations/RbxFpsUnlocker.cs +++ b/Bloxstrap/Helpers/Integrations/RbxFpsUnlocker.cs @@ -68,10 +68,7 @@ namespace Bloxstrap.Helpers.Integrations if (Directory.Exists(folderLocation)) { CheckIfRunning(); - - DirectoryInfo directory = new(folderLocation); - directory.Attributes &= ~FileAttributes.ReadOnly; - directory.Delete(true); + Directory.Delete(folderLocation, true); } return; @@ -84,7 +81,10 @@ namespace Bloxstrap.Helpers.Integrations string downloadUrl = releaseInfo.Assets[0].BrowserDownloadUrl; - Directory.CreateDirectory(folderLocation); + DirectoryInfo directory = new(folderLocation); + directory.Create(); + // i have no idea how the read only flag enables itself but apparently it just does + directory.Attributes &= ~FileAttributes.ReadOnly; if (File.Exists(fileLocation)) { diff --git a/README.md b/README.md index 8addd16..a187c14 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ # Bloxstrap -![License](https://img.shields.io/github/license/pizzaboxer/bloxstrap) -![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/pizzaboxer/bloxstrap/ci.yml?branch=main) -![Downloads](https://img.shields.io/github/downloads/pizzaboxer/bloxstrap/total) -![Star](https://img.shields.io/github/stars/pizzaboxer/bloxstrap?style=social) +[![License](https://img.shields.io/github/license/pizzaboxer/bloxstrap)](https://github.com/pizzaboxer/bloxstrap/blob/main/LICENSE) +[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/pizzaboxer/bloxstrap/ci.yml?branch=main)](https://github.com/pizzaboxer/bloxstrap/actions) +[![Downloads](https://img.shields.io/github/downloads/pizzaboxer/bloxstrap/total)](https://github.com/pizzaboxer/bloxstrap/releases) +[![Version](https://img.shields.io/github/v/release/pizzaboxer/bloxstrap?color=4d3dff)](https://github.com/pizzaboxer/bloxstrap/releases/latest) +![lol](https://img.shields.io/badge/mom%20made-pizza%20rolls-orange) +[![Stars](https://img.shields.io/github/stars/pizzaboxer/bloxstrap?style=social)](https://github.com/pizzaboxer/bloxstrap/stargazers) An open-source, feature-packed alternative bootstrapper for Roblox.