You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix Directory::get_space_left() result on macOS and Linux.
This commit is contained in:
@@ -460,7 +460,7 @@ uint64_t DirAccessUnix::get_space_left() {
|
|||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
return vfs.f_bfree * vfs.f_bsize;
|
return (uint64_t)vfs.f_bavail * (uint64_t)vfs.f_frsize;
|
||||||
#else
|
#else
|
||||||
// FIXME: Implement this.
|
// FIXME: Implement this.
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user