Compare commits

...

3 Commits

Author SHA1 Message Date
cryolithic
6b7a4dc668
Merge 1e3f76a2fd into 1f21e8ce0b 2025-03-31 13:32:51 +02:00
bluepilledgreat
1f21e8ce0b Update README.md [no ci] 2025-03-30 12:44:19 +01:00
Cryolithic
1e3f76a2fd Update Filesystem.cs
Made disk space check more reliable.
2024-10-18 14:53:41 -07:00
2 changed files with 13 additions and 10 deletions

View File

@ -11,14 +11,21 @@ namespace Bloxstrap.Utility
{
internal static long GetFreeDiskSpace(string path)
{
foreach (var drive in DriveInfo.GetDrives())
try
{
// https://github.com/bloxstraplabs/bloxstrap/issues/1648#issuecomment-2192571030
if (path.ToUpperInvariant().StartsWith(drive.Name))
return drive.AvailableFreeSpace;
var isUri = Uri.TryCreate(p, UriKind.RelativeOrAbsolute, out var u);
if (!Path.IsPathRooted(p) || !Path.IsPathFullyQualified(p) || (isUri && (u?.IsUnc??false)))
{
return -1;
}
var drive = new DriveInfo(p);
return drive.AvailableFreeSpace;
}
return -1;
catch (ArgumentException e)
{
App.Logger.WriteLine("Filesystem::BadPath", $"The path: {p} does not contain a valid drive info.");
return -1
}
}
internal static void AssertReadOnly(string filePath)

View File

@ -36,10 +36,6 @@ Bloxstrap is only supported for PCs running Windows.
**A:** No, it shouldn't. Bloxstrap doesn't interact with the Roblox client in the same way that exploits do. [Read more about that here.](https://github.com/bloxstraplabs/bloxstrap/wiki/Why-it's-not-reasonably-possible-for-you-to-be-banned-by-Bloxstrap)
**Q: Why was multi-instance launching removed?**
**A:** It was removed starting with v2.6.0 for the [reasons stated here](https://github.com/bloxstraplabs/bloxstrap/wiki/Plans-to-remove-multi%E2%80%90instance-launching-from-Bloxstrap). It may be added back in the future when there are less issues with doing so.
## Features
- Hassle-free Discord Rich Presence to let your friends know what you're playing at a glance