You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
-made get_space_left() return values more homogenous, also for script, converted to mb, closes #4617
This commit is contained in:
@@ -321,7 +321,7 @@ size_t DirAccessUnix::get_space_left() {
|
||||
struct statvfs vfs;
|
||||
if (statvfs(current_dir.utf8().get_data(), &vfs) != 0) {
|
||||
|
||||
return -1;
|
||||
return 0;
|
||||
};
|
||||
|
||||
return vfs.f_bfree * vfs.f_bsize;
|
||||
|
||||
Reference in New Issue
Block a user