mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-06-23 23:00:23 -07:00
Compare commits
3 Commits
18ec23df5a
...
6b7a4dc668
Author | SHA1 | Date | |
---|---|---|---|
|
6b7a4dc668 | ||
|
1f21e8ce0b | ||
|
1e3f76a2fd |
@ -11,14 +11,21 @@ namespace Bloxstrap.Utility
|
|||||||
{
|
{
|
||||||
internal static long GetFreeDiskSpace(string path)
|
internal static long GetFreeDiskSpace(string path)
|
||||||
{
|
{
|
||||||
foreach (var drive in DriveInfo.GetDrives())
|
try
|
||||||
{
|
{
|
||||||
// https://github.com/bloxstraplabs/bloxstrap/issues/1648#issuecomment-2192571030
|
var isUri = Uri.TryCreate(p, UriKind.RelativeOrAbsolute, out var u);
|
||||||
if (path.ToUpperInvariant().StartsWith(drive.Name))
|
if (!Path.IsPathRooted(p) || !Path.IsPathFullyQualified(p) || (isUri && (u?.IsUnc??false)))
|
||||||
return drive.AvailableFreeSpace;
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
var drive = new DriveInfo(p);
|
||||||
|
return drive.AvailableFreeSpace;
|
||||||
}
|
}
|
||||||
|
catch (ArgumentException e)
|
||||||
return -1;
|
{
|
||||||
|
App.Logger.WriteLine("Filesystem::BadPath", $"The path: {p} does not contain a valid drive info.");
|
||||||
|
return -1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static void AssertReadOnly(string filePath)
|
internal static void AssertReadOnly(string filePath)
|
||||||
|
@ -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)
|
**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
|
## Features
|
||||||
|
|
||||||
- Hassle-free Discord Rich Presence to let your friends know what you're playing at a glance
|
- Hassle-free Discord Rich Presence to let your friends know what you're playing at a glance
|
||||||
|
Loading…
Reference in New Issue
Block a user