mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-03 07:22:10 +00:00
Fix bug where SRB2 would check size of current directory instead of srb2home
Hopefully that fixes that one bug with weird filesize issues too
This commit is contained in:
parent
db77fc5f00
commit
2a27628232
1 changed files with 2 additions and 2 deletions
|
|
@ -2601,7 +2601,7 @@ void I_GetDiskFreeSpace(INT64 *freespace)
|
||||||
return;
|
return;
|
||||||
#else // Both Linux and BSD have this, apparently.
|
#else // Both Linux and BSD have this, apparently.
|
||||||
struct statfs stfs;
|
struct statfs stfs;
|
||||||
if (statfs(".", &stfs) == -1)
|
if (statfs(srb2home, &stfs) == -1)
|
||||||
{
|
{
|
||||||
*freespace = INT32_MAX;
|
*freespace = INT32_MAX;
|
||||||
return;
|
return;
|
||||||
|
|
@ -2620,7 +2620,7 @@ void I_GetDiskFreeSpace(INT64 *freespace)
|
||||||
}
|
}
|
||||||
if (pfnGetDiskFreeSpaceEx)
|
if (pfnGetDiskFreeSpaceEx)
|
||||||
{
|
{
|
||||||
if (pfnGetDiskFreeSpaceEx(NULL, &lfreespace, &usedbytes, NULL))
|
if (pfnGetDiskFreeSpaceEx(srb2home, &lfreespace, &usedbytes, NULL))
|
||||||
*freespace = lfreespace.QuadPart;
|
*freespace = lfreespace.QuadPart;
|
||||||
else
|
else
|
||||||
*freespace = INT32_MAX;
|
*freespace = INT32_MAX;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue