summaryrefslogtreecommitdiffstats
path: root/core/io/file_access.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-02-16 15:25:32 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-02-16 15:34:20 +0200
commitbc95b0b17145e0e8df7e92ae5bea689112afab85 (patch)
tree3f8b1b171d14032e7508108caa50bdda44398d5d /core/io/file_access.cpp
parent953383328af17e8c9fd6359285c12617cb22f636 (diff)
downloadredot-engine-bc95b0b17145e0e8df7e92ae5bea689112afab85.tar.gz
Restore FileAccess.close method.
Diffstat (limited to 'core/io/file_access.cpp')
-rw-r--r--core/io/file_access.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/io/file_access.cpp b/core/io/file_access.cpp
index cacbcb28a4..0e9084de84 100644
--- a/core/io/file_access.cpp
+++ b/core/io/file_access.cpp
@@ -856,6 +856,8 @@ void FileAccess::_bind_methods() {
ClassDB::bind_method(D_METHOD("store_pascal_string", "string"), &FileAccess::store_pascal_string);
ClassDB::bind_method(D_METHOD("get_pascal_string"), &FileAccess::get_pascal_string);
+ ClassDB::bind_method(D_METHOD("close"), &FileAccess::close);
+
ClassDB::bind_static_method("FileAccess", D_METHOD("file_exists", "path"), &FileAccess::exists);
ClassDB::bind_static_method("FileAccess", D_METHOD("get_modified_time", "file"), &FileAccess::get_modified_time);