aboutsummaryrefslogtreecommitdiff
path: root/core/bind/core_bind.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-06-18 11:32:45 -0300
committerJuan Linietsky2016-06-18 11:32:45 -0300
commite3905a084e614738fa6565144bf364b8f364f2ae (patch)
tree6d375fa7e86e2b6c83814959723ea013d775ba91 /core/bind/core_bind.cpp
parent61655d6dc2912424de937e2870b6a5ad346c3daf (diff)
downloadgodot-e3905a084e614738fa6565144bf364b8f364f2ae.tar.gz
godot-e3905a084e614738fa6565144bf364b8f364f2ae.tar.zst
godot-e3905a084e614738fa6565144bf364b8f364f2ae.zip
-made get_space_left() return values more homogenous, also for script, converted to mb, closes #4617
Diffstat (limited to '')
-rw-r--r--core/bind/core_bind.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp
index 0b0417928..5befc5a7f 100644
--- a/core/bind/core_bind.cpp
+++ b/core/bind/core_bind.cpp
@@ -1913,7 +1913,7 @@ bool _Directory::dir_exists(String p_dir) {
int _Directory::get_space_left(){
ERR_FAIL_COND_V(!d,0);
- return d->get_space_left();
+ return d->get_space_left()/1024*1024; //return value in megabytes, given binding is int
}
Error _Directory::copy(String p_from,String p_to){