aboutsummaryrefslogtreecommitdiff
path: root/core/bind/core_bind.cpp
diff options
context:
space:
mode:
authorLeon Krause2017-10-02 16:09:24 +0200
committerLeon Krause2017-10-02 21:07:05 +0200
commit7b23665e728fe10cd0eedb54824aaeae4ae23758 (patch)
tree289ef1982791cba4c35cc0de331083170c0b18b4 /core/bind/core_bind.cpp
parent66987d687879017affb787b4a3ffb1ef11880336 (diff)
downloadgodot-7b23665e728fe10cd0eedb54824aaeae4ae23758.tar.gz
godot-7b23665e728fe10cd0eedb54824aaeae4ae23758.tar.zst
godot-7b23665e728fe10cd0eedb54824aaeae4ae23758.zip
Diffstat (limited to 'core/bind/core_bind.cpp')
-rw-r--r--core/bind/core_bind.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp
index 2477b1b18..3cc5489dd 100644
--- a/core/bind/core_bind.cpp
+++ b/core/bind/core_bind.cpp
@@ -755,6 +755,11 @@ bool _OS::can_draw() const {
return OS::get_singleton()->can_draw();
}
+bool _OS::is_userfs_persistent() const {
+
+ return OS::get_singleton()->is_userfs_persistent();
+}
+
int _OS::get_processor_count() const {
return OS::get_singleton()->get_processor_count();
@@ -1051,6 +1056,7 @@ void _OS::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_model_name"), &_OS::get_model_name);
ClassDB::bind_method(D_METHOD("can_draw"), &_OS::can_draw);
+ ClassDB::bind_method(D_METHOD("is_userfs_persistent"), &_OS::is_userfs_persistent);
ClassDB::bind_method(D_METHOD("is_stdout_verbose"), &_OS::is_stdout_verbose);
ClassDB::bind_method(D_METHOD("can_use_threads"), &_OS::can_use_threads);