summaryrefslogtreecommitdiff
path: root/core/io/file_access_pack.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-16 18:34:48 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-16 18:34:48 +0100
commitec2f9a78f7e8e9ad767a34f77ad2f825c3f59c63 (patch)
tree8b8bb867eac8b5a9cab6ede811832240b871b453 /core/io/file_access_pack.cpp
parent2d845ee3d1714e6d9787a061c1dc7eaba9ad4c96 (diff)
parentbc95b0b17145e0e8df7e92ae5bea689112afab85 (diff)
Merge pull request #73435 from bruvzg/file_close
Restore FileAccess.close method.
Diffstat (limited to 'core/io/file_access_pack.cpp')
-rw-r--r--core/io/file_access_pack.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp
index 7c392c005a..9553f35b19 100644
--- a/core/io/file_access_pack.cpp
+++ b/core/io/file_access_pack.cpp
@@ -366,6 +366,10 @@ bool FileAccessPack::file_exists(const String &p_name) {
return false;
}
+void FileAccessPack::close() {
+ f = Ref<FileAccess>();
+}
+
FileAccessPack::FileAccessPack(const String &p_path, const PackedData::PackedFile &p_file) :
pf(p_file),
f(FileAccess::open(pf.pack, FileAccess::READ)) {