Followup on rbxfpsunlocker read-only fix

also readme badges lol
This commit is contained in:
pizzaboxer 2023-02-18 12:05:11 +00:00
parent 52313cf2af
commit b1514cef6b
2 changed files with 11 additions and 9 deletions

View File

@ -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))
{

View File

@ -1,8 +1,10 @@
# <img src="https://github.com/pizzaboxer/bloxstrap/raw/main/Images/Bloxstrap.png" width="48"/> 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.